23
loading...
This website collects cookies to deliver better user experience
bcrypt
to the gemfile, which would provide a hashing algorithm to the user’s password.has_secure_password
to the User model.password_digest
column in the database where the salted and hashed password will be stored.user.id
in the session as below:session[:user_id] = user.id
23