Skip to content

Commit

Permalink
remove )
Browse files Browse the repository at this point in the history
  • Loading branch information
ShiraUnger authored May 12, 2019
1 parent 84dd365 commit d3dc5a4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/devise-security/models/password_archivable.rb
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ def archive_count
# archive the last password before save and delete all to old passwords from archive
def archive_password
if max_old_passwords > 0
old_passwords.create!(encrypted_password: encrypted_password_was, password_salt: password_salt_was)) if encrypted_password_was.present?
old_passwords.create!(encrypted_password: encrypted_password_was, password_salt: password_salt_was) if encrypted_password_was.present?
old_passwords.order(:id).reverse_order.offset(max_old_passwords).destroy_all
else
old_passwords.destroy_all
Expand Down

0 comments on commit d3dc5a4

Please sign in to comment.