37 Commits

Author SHA1 Message Date
bb145f5067 Fixes #3179: removed duplicate validation rules from User model in advanced app, removed User::create() 2014-04-30 02:16:28 +04:00
a15a3835c7 Moved all filter classes to namespace yii\filters 2014-04-05 01:00:14 -04:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
8a2903de03 Added verb filter to advanced app logout 2014-02-28 21:13:30 +04:00
036a811ea4 Fixes #2458: Added missing validaton to advanced app forms, separated validation from email sending errors for contact form 2014-02-20 17:50:53 +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
ca12241811 Fixed minor consistency bugs in apps
* Added 'return' to goHome() calls in actions
* Changed $_POST to Yii::$app->request->post()
2014-02-15 16:32:24 +01: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
a43be083e8 Moved forms used in frontend only to frontend 2014-02-01 22:23:29 +04:00
71fba07700 Moved most of the user-related logic into form models 2014-01-31 23:18:07 +04:00
b9e1ce3f97 more validation for password reset token in advanced app
fixes #2099
2014-01-21 17:13:40 +01:00
c7c13a6693 Added concrete http exception classes. 2013-11-29 21:22:08 -05:00
408eee75a9 Used full method names when sending email in advanced app 2013-11-27 12:58:28 +04:00
e3292c959a Advanced application template now uses mailer component instead of mail() function 2013-11-27 03:48:20 +04:00
016d796e95 advanced app: go back after login, not home 2013-11-12 11:07:14 +01:00
998cf7e675 updated apps to use the mail component. 2013-11-07 23:01:13 -05:00
f2484fd616 Modified application templates so when trying to log in when already logged in it just redirects to homepage instead of throwing exceptions 2013-11-07 01:19:36 +04:00
dfb6e1f404 Convert to short syntax [2]. 2013-10-18 12:03:36 +00:00
gsd
41e2c41002 Update SiteController.php 2013-09-18 22:18:12 +06:00
f5778b6bf0 Advanced application enhancements.
- Turned on CSRF validation by default.
- Added access control for login, signup and logout for frontend application.
- Added access control for login, logout and index for backend application.
- YII_ENV is now defined for all applications.
- No trace is writted to logs if debug is turned off.
- Added default error view for frontend and backend.
- In frontend application captcha will always ask for "testme" if YII_ENV is defined as "test".
2013-09-16 02:46:29 +04:00
27ad7e1fc7 Added Controller::goHome(). 2013-08-12 13:19:37 -04:00
3d5388ff2b Reorganized captcha code. 2013-08-03 07:20:39 -04:00
aa3e816023 fixes #652 advanced app fixes 2013-07-22 12:41:25 +04:00
b02f01f6be More on advanced app template:
- Unified way to use Alert
- Added link to restore password to login form
- Refactored restore password
2013-07-21 22:10:31 +04:00
90ed776296 implemented password reset 2013-07-18 03:09:41 +04:00
c5e9d84c6a signup action for advanced app template 2013-07-18 02:06:34 +04:00
9cf82b3ae1 Added Model::load(). Added Controller::refresh() and redirect(). 2013-06-26 08:34:27 -04:00
f18d6df625 Revert "Merge pull request #548 from cebe/action-response"
This reverts commit 9d7597d61a51ae7030b667f740c2a97471cf7f6e, reversing
changes made to 6b6390f72b6a6010cfbe614aab236a90d10b1a00.
2013-06-16 19:45:58 -04:00
71782b344e Changed existing code to match the changes regarding response 2013-06-16 18:52:56 +02:00
420637443c Refactored the way of sending response in controller actions. 2013-06-13 23:39:18 -04:00
75917e2cb1 User and LoginForm are now common models, User is AR and Identity 2013-05-25 03:23:09 +04:00
e8d59fb6cb specified proper namespaces 2013-05-24 23:37:22 +04:00
0fb30f8d25 Advanced application template 2013-05-24 21:47:27 +04:00