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