Remove unused Administrateur.reset_password method

This commit is contained in:
simon lehericey 2019-11-05 10:18:37 +01:00
parent 395aba8bbc
commit 9f5169eb7d

View file

@ -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