Remove unused Administrateur.reset_password method
This commit is contained in:
parent
395aba8bbc
commit
9f5169eb7d
1 changed files with 0 additions and 10 deletions
|
@ -59,16 +59,6 @@ class Administrateur < ApplicationRecord
|
|||
!user.active? && !user.reset_password_period_valid?
|
||||
end
|
||||
|
||||
def self.reset_password(reset_password_token, password)
|
||||
administrateur = self.reset_password_by_token({
|
||||
password: password,
|
||||
password_confirmation: password,
|
||||
reset_password_token: reset_password_token
|
||||
})
|
||||
|
||||
administrateur
|
||||
end
|
||||
|
||||
def owns?(procedure)
|
||||
procedure.administrateurs.include?(self)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue