Devise 登陆验证

 Devise 登陆验证的代码
Devise 登陆验证_第1张图片
  https://github.com/plataformatec/devise/blob/v2.0.2/lib/devise/models/database_authenticatable.rb#L37
 
salt = self.encrypted_password[0..28]
Devise 登陆验证_第2张图片
  https://github.com/codahale/bcrypt-ruby/blob/v3.0.1/lib/bcrypt.rb#L169
 
ref
1. http://guides.ruby-china.org/debugging_rails_applications.html
2.https://github.com/hassox/warden/blob/v1.2.1/lib/warden/proxy.rb#L352
3.https://github.com/plataformatec/devise/blob/v2.0.2/lib/devise/strategies/database_authenticatable.rb#L9
4.https://github.com/plataformatec/devise/blob/v2.0.2/lib/devise/models/database_authenticatable.rb#L37
5.https://github.com/codahale/bcrypt-ruby/blob/v3.0.1/lib/bcrypt.rb#L169

你可能感兴趣的:(vi)