119 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
5190fbfe37 aliases.php renamed to bootstrap.php (introduced to specific applications too) 2014-09-12 11:29:48 +04:00
7eb403bf45 Codeception test adjustments for basic and advanced applications
- Moved everything test-related into `tests` directory. Codeception tests are in `codeception`.
- Removed database module since we're using fixtures and migrations.
- Moved console entry points and bootstrap into `tests/codeception/bin`.
- Adjusted travis build scripts.
- Adjusted documentation to be consistent and reflect changes made.
2014-08-15 19:09:52 +04:00
dfffea9af3 Use config variables instead constants. Cleanup redundant constants 2014-08-11 12:46:28 +04:00
71adca60ee Add namespaces to all tests 2014-08-11 12:43:50 +04:00
359ae98f9c Fixes #4622: Simplified the way of creating a Faker fixture template file 2014-08-07 21:23:53 -04: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
10747196a2 Codeceoption adjustments
- Removed hacks since these are no longer required: 71db233985
- Removed unused helper classes
- Added 2.0 style "actor" to config

Thanks to @Ragazzo and @DavertMik for helping with it.
2014-07-11 19:30:45 +04:00
98d3a8c050 Fixes #4252, Fixes #3171 Fixed Codeception 2014-07-11 01:27:28 +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
00e2540c5f typo 2014-07-02 17:05:00 +02:00
a2a6028253 Fixes #3992
Fixes #4147
2014-07-01 14:45:44 -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
0ff0f9d32e Missing files for #4071 2014-06-26 18:28:57 +04:00
c8299697d0 Correct fix for #4060 2014-06-25 21:03:58 +04:00
0c14f47f9a Fixes #3793: Changed inline autocomplete hints style to get more IDEs support 2014-06-20 17:40:00 +04:00
9949acbdd2 tabs to spaces unacceptable fix 2014-06-09 16:41:24 +04:00
f17982683b application advanced template tests fixed 2014-06-09 16:31:49 +04:00
617941e009 Missing $message var reference removed from mail layouts 2014-05-29 17:41:10 +03:00
124c7e8448 Mail layout charset specification fixed 2014-05-29 17:11:45 +03:00
07f30cb04c Fixes #3542: Removed requirement to specify extensions in application config 2014-05-24 18:11:59 +04:00
a63d7a7939 Advanced app's common tests codeception generated files gitignored 2014-05-16 14:01:26 +02: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
7295540c72 Code style and phpdoc fixes 2014-04-17 15:33:07 +04:00
75154d351d Refactored AR find 2014-04-07 09:43:03 +04:00
abeea6351a Renamed fixtures 2014-03-31 01:19:11 +04:00
76a7beb67f Fixed test break. 2014-03-16 08:19:27 -04:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
9efcde3a12 Update _config.php
fixed application config for unit test
2014-03-09 23:44:46 +05: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
e38c4225b2 Merge commit 'bdce87b242abbff800020deba0a5c2031fc2efe7' into feature-restapi
Conflicts:
	framework/db/BaseActiveRecord.php
2014-03-06 00:00:33 -05:00
386979d6a3 Revert "Used ternary operator instead of "or" for constant definition"
This reverts commit 2bb6f13505e212d68841a7e6609806fb30d04002.
2014-03-06 01:56:51 +04:00
9c4c8ffbcc apps code style fixes 2014-03-04 23:04:20 +02:00
61b64d7513 Removed unused "use" statements 2014-03-04 22:40:04 +04:00
2bb6f13505 Used ternary operator instead of "or" for constant definition 2014-03-04 22:17:11 +04: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
6e7edfdf5b short array syntax 2014-03-03 20:21:55 +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
d8d44b6127 Merge pull request #2501 from yiisoft/unify-urls
Fixes #2426: Changed URL creation method signatures to be consistent
2014-02-21 23:53:15 +03:00