Alexander Makarov
f0d7a52d84
Removed User.role from advanced application template because it was causing confusion that user could be assinged a single RBAC role and that role field is somehow tied to RBAC at all.
10 years ago
Alexander Makarov
08b53fb349
Fixes #5088 : new password reset token is now generated only if previous one was already used or expired
10 years ago
宝哥哥
1b716a119f
Update User.php
...
delete spaces
10 years ago
RichWeber
92cd13a913
pull origin
10 years ago
tom--
2c5c2c101b
Fixes #4131 : Security adjustments
10 years ago
resurtm
46591248b8
Fix invalid indentation.
10 years ago
Alexander Kochetov
e306394d51
Advanced app `User` model code style fixes
10 years ago
Serge Postrash
6ec0b60a69
IdentityInterface::findIdentity should return active users
...
```
interface IdentityInterface
{
/**
* Finds an identity by the given ID.
* @param string|integer $id the ID to be looked for
* @return IdentityInterface the identity object that matches the given ID.
* Null should be returned if such an identity cannot be found
* or the identity is not in an active state (disabled, deleted, etc.)
*/
public static function findIdentity($id);
```
10 years ago
Alexander Kochetov
fed61f7d96
Advanced app `User` model code style fixes
10 years ago
Alexander Kochetov
044fe3633e
Advanced app `User` model code style fixes
10 years ago
Klimov Paul
2bab6259d1
'Security' helper usage switched to 'security' application component.
10 years ago
Alexander Makarov
c8299697d0
Correct fix for #4060
10 years ago
Qiang Xue
af7530663d
Fixes #3383 : Added `$type` parameter to `IdentityInterface::findIdentityByAccessToken()`
11 years ago
Alexander Makarov
0b7f649148
Fixed setting defaults in User model of advanced app, see bb145f5067
11 years ago
Alexander Makarov
bb145f5067
Fixes #3179 : removed duplicate validation rules from User model in advanced app, removed User::create()
11 years ago
Alexander Makarov
75154d351d
Refactored AR find
11 years ago
SonicGD
b5f8a4dc22
Reformat code te be PSR-2 compatible
11 years ago
Johnny Theill
a5e6e2d43b
username should be unique
11 years ago
Alexander Mohorev
c7e8d8b900
@param , @var , @property and @return must declare types as boolean, integer, string, array or null
11 years ago
Qiang Xue
7a04dbaae1
Support for other auth types.
11 years ago
Qiang Xue
48a12559b2
rest api WIP
11 years ago
Carsten Brandt
72145098a1
updated timestamp behavior in advanced app to renaming
11 years ago
Johnny Theill
f42af951e1
Fix newlines and missing parameter description
11 years ago
Johnny Theill
63272f4166
Update doc-blocks and small fixes according to coding standards
11 years ago
Alexander Makarov
f226ee5610
password_reset_token is now null when reset
11 years ago
Alexander Makarov
d13ed43212
Fixed signup/restore password flow
11 years ago
Alexander Makarov
6cac7c61e5
Removed Yii::$app->getParam usage
11 years ago
Alexander Makarov
b8235c717d
Added password reset token expiration
11 years ago
Alexander Makarov
5d7e7f4d91
Moved creating user to static method of the model
11 years ago
Alexander Makarov
c2e0b5beb5
Optimized forms code a bit
11 years ago
Alexander Makarov
d98ec80cd1
Used setter as field
11 years ago
Alexander Makarov
6ad0d72a48
Extracted password-related code into User model methods
11 years ago
Alexander Makarov
71fba07700
Moved most of the user-related logic into form models
11 years ago
Alexander Kochetov
ddb0e9b0e6
Advanced app User model updated
11 years ago
Alexander Makarov
8e013aacd0
Fixes #1633 : fixed scenarios for User model in advanced application allowing setting default values for User model
11 years ago
Alexander Makarov
515095bbf7
Fixes #1633 : Advanced application template now works with MongoDB by default
11 years ago
slavcodev
f57b3536a2
Fixed apps rules
11 years ago
slavcodev
ecc557ef92
Refactor all models to new rules format
11 years ago
Yakir Sitbon
dfb6e1f404
Convert to short syntax [2].
11 years ago
Alexander Makarov
e19d0dacf9
Fixes #823 : consistent interface naming
11 years ago
Alexander Makarov
4d901acd8e
Advanced application template: removed unused scenario from User model
11 years ago
Alexander Makarov
b02f01f6be
More on advanced app template:
...
- Unified way to use Alert
- Added link to restore password to login form
- Refactored restore password
11 years ago
Alexander Makarov
5284e5856d
added some phpdoc to advanced app
11 years ago
Qiang Xue
a6cd7b72bb
refactored helper organization.
11 years ago
Alexander Makarov
90ed776296
implemented password reset
11 years ago
Alexander Makarov
b8ff2cc569
Added authkey generation
11 years ago
resurtm
29c593d526
Fix CS issues.
11 years ago
FrediL
6249b89932
Change validators from 'length' to 'string'
11 years ago
Carsten Brandt
c8e73b42e7
fixed AutoTimestamp example in advanced app
...
fixes #429
12 years ago
Alexander Makarov
75917e2cb1
User and LoginForm are now common models, User is AR and Identity
12 years ago