Skip to content

Commit

Permalink
Merge pull request #186 from ncbo/expire_reset_passwd_tokens
Browse files Browse the repository at this point in the history
add attribute for storing reset token expire time
  • Loading branch information
alexskr authored Feb 7, 2024
2 parents 885031c + 073f79d commit 1e8bd29
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ontologies_linked_data/models/users/user.rb
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,14 @@ class User < LinkedData::Models::Base
attribute :subscription, enforce: [:list, :subscription]
attribute :customOntology, enforce: [:list, :ontology]
attribute :resetToken
attribute :resetTokenExpireTime
attribute :provisionalClasses, inverse: { on: :provisional_class, attribute: :creator }

# Hypermedia settings
embed :subscription
embed_values :role => [:role]
serialize_default :username, :email, :role, :apikey
serialize_never :passwordHash, :show_apikey, :resetToken
serialize_never :passwordHash, :show_apikey, :resetToken, :restTokenExpireTime
serialize_filter lambda {|inst| show_apikey?(inst)}

# Cache
Expand Down

0 comments on commit 1e8bd29

Please sign in to comment.