`
FZtree
  • 浏览: 105623 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论

Devise 登陆验证

 
阅读更多
 Devise 登陆验证的代码
 https://github.com/plataformatec/devise/blob/v2.0.2/lib/devise/models/database_authenticatable.rb#L37
 
salt = self.encrypted_password[0..28]

 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
  • 大小: 157.7 KB
  • 大小: 60.4 KB
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics