在rails中使用加密:bcrypt. 於Gemfile中解除註解後,執行bundle install. gem 'bcrypt', '~> 3.1.7'. 在User model中定義以下方法:.
確定! 回上一頁