JensHoffmann
0a3ba8aca9
Bug #2503 : Improve setting of password/auth_driver
...
UserChangePassword followed this strategy:
a1. Eventually encrypt user password if the users
auth_driver is CORE_AUTH
a2. Set (probably encrypted) password with
User::set_password
a3. User::set_password tries to validate (probably
encrypted) password instead of the raw password
UserChangeAuth did something similar:
b1. If password is given (not empty) do a1 through a3
b2. Set auth_driver
The change proposes the following:
* In set_password:
1. Validate the raw password
2. Do encryption if needed
* In UserChangePassword: simply call set_password
* In UserChangeAuth: set auth_driver *before* calling
set_password, such that set_password does the right thing
if the auth_driver changes
Note: I needed to move the implementation of set_password
from User.h to User.cc since it seems impossible to access
UserPool::CORE_AUTH from within User.h.
2014-03-04 17:00:11 +01:00
..
2014-02-21 15:23:24 +01:00
2014-01-28 18:21:49 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-29 18:15:06 +01:00
2014-01-09 11:51:20 +01:00
2014-01-23 17:07:52 +01:00
2014-03-04 11:42:44 +01:00
2014-01-09 11:51:20 +01:00
2014-01-23 16:36:22 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-13 16:30:43 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-24 18:27:36 +01:00
2014-01-09 11:51:20 +01:00
2014-02-26 12:59:29 +01:00
2014-02-05 19:30:35 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-03-04 11:42:44 +01:00
2014-01-09 11:51:20 +01:00
2014-01-13 16:30:43 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-02-20 12:36:06 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-02-17 15:47:46 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-03-04 11:42:44 +01:00
2014-01-09 11:51:20 +01:00
2014-03-04 12:53:44 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-25 20:41:13 +01:00
2014-01-23 16:36:22 +01:00
2014-01-24 18:27:36 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-23 16:36:22 +01:00
2014-01-21 23:21:18 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-02-12 19:27:38 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-02-21 15:23:24 +01:00
2014-02-19 16:49:26 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-23 16:36:22 +01:00
2014-01-23 16:36:22 +01:00
2014-01-24 00:14:38 +01:00
2014-01-28 14:47:57 +01:00
2014-01-09 11:51:20 +01:00
2014-02-26 12:59:29 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-02-23 19:31:08 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-03-04 17:00:11 +01:00
2014-02-05 19:30:35 +01:00
2014-02-26 12:59:29 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-13 16:30:43 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-13 16:30:43 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-01-24 18:27:36 +01:00
2014-01-09 11:51:20 +01:00
2014-01-09 11:51:20 +01:00
2014-03-04 12:53:44 +01:00
2014-03-04 12:53:44 +01:00