1 | <?php |
||
13 | class WebUserController extends Controller |
||
14 | { |
||
15 | public $defaultAction = 'login'; |
||
16 | |||
17 | /** |
||
18 | * @inheritdoc |
||
19 | */ |
||
20 | public function behaviors() |
||
37 | |||
38 | /** |
||
39 | * Declares class-based actions. |
||
40 | * For change functional use AuthUserBehavior, This is component |
||
41 | * declaret in to config.php, you can change him. |
||
42 | * Auth event: |
||
43 | * |
||
44 | * - beforeLogin(ActionEvent) |
||
45 | * - afterLogin(ActionEvent) |
||
46 | * - errorLogin(ActionEvent) |
||
47 | * |
||
48 | * - beforeSignup(ActionEvent) |
||
49 | * - afterSignup(ActionEvent) |
||
50 | * - errorSignup(ActionEvent) |
||
51 | * |
||
52 | * - beforeCheckRecoveryKey(ActionEvent) |
||
53 | * - afterCheckRecoveryKey(ActionEvent) |
||
54 | * - errorCheckRecoveryKey(ActionEvent) |
||
55 | * |
||
56 | * - beforeForgot(ActionEvent) |
||
57 | * - afterForgot(ActionEvent) |
||
58 | * - errorForgot(ActionEvent) |
||
59 | * |
||
60 | * - beforeLogout(ActionEvent) |
||
61 | * - afterLogout(ActionEvent) |
||
62 | * |
||
63 | * Also if you use extensions evenement, use this events, |
||
64 | * Insert into listeners.php: |
||
65 | * |
||
66 | * ... |
||
67 | * yiicod.auth.controllers.WebUserBase.[All event name before] |
||
68 | * ... |
||
69 | */ |
||
70 | public function actions() |
||
91 | } |
||
92 |