Commit Graph

16 Commits

Author SHA1 Message Date
yoshihara
761322280d Use if instead of unless for readability 2015-04-08 18:26:31 +09:00
yoshihara
27f550e9ea Use the correct error message to unmatched password with password_confirmation 2015-04-08 17:40:36 +09:00
yoshihara
2e2f4f66e8 Fix the bug that password is changed unexpectedly when confirm is wrong
model spec is broken, so i fix it.
2015-04-08 17:40:36 +09:00
Kouhei Sutou
f5c0aaf8f2 Converge codes for user name restriction
The current implementation accepts only "admin" user. Codes for the
restriction exist in several files.

This change converges codes for the restriction to
app/models/user.rb. This change will be helpful when we support more
user names.
2014-09-25 15:55:19 +09:00
uu59
79206b1197 Remove bcrypt gem for packaging issue on Mac 2014-09-02 16:10:53 +09:00
uu59
36b9b8782a Store password into ~/.fluentd-ui dir to keep it after updating 2014-08-22 17:16:15 +09:00
Kouhei Sutou
ab903716bc Try to fix wrong try usage
`Object#try` checks "whether receiver is nil or not". It doesn't rescue
any exceptions raised in method call.

    > User.new(name: "admin", password_digest: "invalid-hash").authenticate("X")
    BCrypt::Errors::InvalidHash: invalid hash
            from /var/lib/gems/2.1.0/gems/bcrypt-3.1.7/lib/bcrypt/password.rb:60:in `initialize'
            ...
2014-08-19 21:21:35 +09:00
uu59
ec44ba10d6 cosme 2014-07-31 18:30:46 +09:00
uu59
0b2e12e221 Fix if stored password hash is invalid 2014-06-19 17:33:11 +09:00
uu59
81acdd9067 Refactoring 2014-06-19 17:32:53 +09:00
uu59
25b9d1bf9b Add NOTE for User model 2014-06-19 16:28:34 +09:00
uu59
81600a2ba4 Remove ActiveRecord from User and RememeberToken 2014-06-19 16:28:34 +09:00
uu59
54d3e6c95c Multi clients can login by same user 2014-05-22 13:21:32 +09:00
uu59
80875d0b11 Change user management. just manage password for admin user 2014-05-22 11:04:24 +09:00
uu59
1f8dd17c43 model spec 2014-05-13 17:02:32 +09:00
uu59
508956f3b4 Add sign in process 2014-05-13 16:58:52 +09:00