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 Mohorev
64b4d6dca1
Correct order of property declaration
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
mickgeek
017572d8a5
Fix signature validation
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
Alexander Makarov
a687e6f58c
Validate login data only of there are no other errors
11 years ago
Carsten Brandt
72145098a1
updated timestamp behavior in advanced app to renaming
11 years ago
Mark
942462a5cf
visibility fix
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
dd26d39dd8
Removed unused namespace imports
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
a1497ca01c
Removed extra \models\forms namespace, moved all models to just \models
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
a43be083e8
Moved forms used in frontend only to frontend
11 years ago
Alexander Makarov
d98ec80cd1
Used setter as field
11 years ago
Alexander Makarov
e4c98f0fa3
Fixed constructor overriding to allow array configuration
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
Qiang Xue
83ab0f0655
minor refactoring
11 years ago
Alexander Makarov
ad6411cae2
Fixed LoginForm::getUserByUsername
11 years ago
Alexander Makarov
5795522fc2
Use Yii::$app->user->login result in LoginForm
11 years ago
Alexander Makarov
5b36503ca8
One less SQL query for login sequence in basic and advanced apps
11 years ago
slavcodev
f57b3536a2
Fixed apps rules
11 years ago
slavcodev
ecc557ef92
Refactor all models to new rules format
11 years ago