Rails authentication with Devise

Topics:

Subtopics

Invalidating a user’s credentials

user.with_lock do
  password = SecureRandom.hex(32)
  user.update!(password: password, password_confirmation: password)
  user.forget_me!
  nil
end

Bookmarks

Questions