63 Commits

Author SHA1 Message Date
08b53fb349 Fixes #5088: new password reset token is now generated only if previous one was already used or expired 2014-09-30 02:26:24 +04:00
1b716a119f Update User.php
delete spaces
2014-09-23 17:20:01 +08:00
017572d8a5 Fix signature validation 2014-07-31 10:11:55 +04:00
2c5c2c101b Fixes #4131: Security adjustments 2014-07-26 03:29:30 +04:00
46591248b8 Fix invalid indentation. 2014-07-10 17:29:51 +06:00
e306394d51 Advanced app User model code style fixes 2014-07-10 15:19:36 +04:00
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);
```
2014-07-08 07:09:03 +04:00
fed61f7d96 Advanced app User model code style fixes 2014-06-30 08:41:36 +04:00
044fe3633e Advanced app User model code style fixes 2014-06-30 08:24:48 +04:00
2bab6259d1 'Security' helper usage switched to 'security' application component. 2014-06-27 14:31:08 +03:00
c8299697d0 Correct fix for #4060 2014-06-25 21:03:58 +04:00
af7530663d Fixes #3383: Added $type parameter to IdentityInterface::findIdentityByAccessToken() 2014-05-06 18:45:18 -04:00
0b7f649148 Fixed setting defaults in User model of advanced app, see bb145f50672d35d62edede906255a8fe9a9c1f5f 2014-05-04 19:42:35 +04:00
bb145f5067 Fixes #3179: removed duplicate validation rules from User model in advanced app, removed User::create() 2014-04-30 02:16:28 +04:00
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
a8ef7bab9e Merge branch 'code-style'
* code-style:
  fix php5.4 array syntax
  many phpcs fixes
  fix phpDoc LuaScriptBuilder build @throws
  returned back formatting language files
  code style. WHILE
  code style. FOR
  code style. FOREACH
  code style. operator IF
  @param, @var, @property and @return must declare types as boolean, integer, string, array or null
  short echo tags
  short array syntax
2014-03-07 21:56:40 +01:00
1b7e1cd027 Merge pull request #2605 branch 'feature' of https://github.com/mongosoft/yii2 into code-style
* 'feature' of https://github.com/mongosoft/yii2:
  returned back formatting language files
  code style. WHILE
  code style. FOR
  code style. FOREACH
  code style. operator IF
  @param, @var, @property and @return must declare types as boolean, integer, string, array or null
  short echo tags
  short array syntax

Conflicts:
	extensions/apidoc/commands/RenderController.php
	extensions/apidoc/models/BaseDoc.php
	extensions/apidoc/models/Context.php
	extensions/apidoc/templates/bootstrap/Renderer.php
	extensions/apidoc/templates/bootstrap/layouts/guide.php
	extensions/apidoc/templates/bootstrap/layouts/main.php
	extensions/apidoc/templates/bootstrap/views/index.php
	extensions/apidoc/templates/html/Renderer.php
	extensions/apidoc/templates/offline/views/index.php
	extensions/apidoc/templates/offline/views/offline.php
	extensions/apidoc/templates/online/views/index.php
	extensions/elasticsearch/Connection.php
	extensions/redis/ActiveQuery.php
	framework/base/ErrorException.php
	framework/helpers/BaseFileHelper.php
	tests/unit/framework/helpers/FileHelperTest.php
2014-03-07 21:54:44 +01:00
a5e6e2d43b username should be unique 2014-03-07 21:50:04 +01:00
c7e8d8b900 @param, @var, @property and @return must declare types as boolean, integer, string, array or null 2014-03-03 20:50:44 +03:00
7a04dbaae1 Support for other auth types. 2014-03-03 10:18:39 -05:00
48a12559b2 rest api WIP 2014-03-01 23:14:16 -05:00
a687e6f58c Validate login data only of there are no other errors 2014-02-21 00:57:29 +04:00
72145098a1 updated timestamp behavior in advanced app to renaming 2014-02-20 13:18:33 +01:00
942462a5cf visibility fix 2014-02-18 18:30:29 +04:00
f42af951e1 Fix newlines and missing parameter description 2014-02-16 03:14:28 +01:00
63272f4166 Update doc-blocks and small fixes according to coding standards 2014-02-15 17:53:57 +01:00
dd26d39dd8 Removed unused namespace imports 2014-02-07 13:26:00 +04:00
f226ee5610 password_reset_token is now null when reset 2014-02-06 00:22:01 +04:00
d13ed43212 Fixed signup/restore password flow 2014-02-06 00:14:23 +04:00
6cac7c61e5 Removed Yii::$app->getParam usage 2014-02-05 23:21:57 +04:00
b8235c717d Added password reset token expiration 2014-02-05 18:23:59 +04:00
a1497ca01c Removed extra \models\forms namespace, moved all models to just \models 2014-02-05 17:41:47 +04:00
5d7e7f4d91 Moved creating user to static method of the model 2014-02-04 13:31:26 +04:00
c2e0b5beb5 Optimized forms code a bit 2014-02-01 23:08:39 +04:00
a43be083e8 Moved forms used in frontend only to frontend 2014-02-01 22:23:29 +04:00
d98ec80cd1 Used setter as field 2014-02-01 20:32:07 +04:00
e4c98f0fa3 Fixed constructor overriding to allow array configuration 2014-02-01 17:47:18 +04:00
6ad0d72a48 Extracted password-related code into User model methods 2014-01-31 23:44:26 +04:00
71fba07700 Moved most of the user-related logic into form models 2014-01-31 23:18:07 +04:00
ddb0e9b0e6 Advanced app User model updated 2014-01-19 13:49:29 +04:00
8e013aacd0 Fixes #1633: fixed scenarios for User model in advanced application allowing setting default values for User model 2014-01-09 00:49:03 +04:00
515095bbf7 Fixes #1633: Advanced application template now works with MongoDB by default 2013-12-29 23:26:20 +01:00
83ab0f0655 minor refactoring 2013-11-16 20:39:51 -05:00
ad6411cae2 Fixed LoginForm::getUserByUsername 2013-11-17 02:19:05 +04:00
5795522fc2 Use Yii::$app->user->login result in LoginForm 2013-11-16 22:16:24 +04:00
5b36503ca8 One less SQL query for login sequence in basic and advanced apps 2013-11-16 19:39:11 +04:00
f57b3536a2 Fixed apps rules 2013-11-13 11:41:25 +02:00
ecc557ef92 Refactor all models to new rules format 2013-11-12 16:39:23 +02:00
dfb6e1f404 Convert to short syntax [2]. 2013-10-18 12:03:36 +00:00