Total Complexity | 2 |
Total Lines | 44 |
Duplicated Lines | 0 % |
Changes | 0 |
1 | <?php |
||
13 | class User extends FrontAppController |
||
14 | { |
||
15 | const EVENT_USER_LOGIN_SUCCESS = 'user.login.success'; |
||
16 | const EVENT_USER_LOGIN_FAIL = 'user.login.fail'; |
||
17 | const EVENT_USER_REGISTER_SUCCESS = 'user.signup.success'; |
||
18 | const EVENT_USER_REGISTER_FAIL = 'user.signup.fail'; |
||
19 | const EVENT_USER_RECOVERY_SUCCESS = 'user.recovery.success'; |
||
20 | |||
21 | use User\ActionLogin { |
||
|
|||
22 | login as actionLogin; |
||
23 | } |
||
24 | |||
25 | use User\ActionSignup { |
||
26 | signup as actionSignup; |
||
27 | } |
||
28 | |||
29 | use User\ActionSocialAuth { |
||
30 | socialauth as actionSocialauth; |
||
31 | } |
||
32 | |||
33 | use User\ActionRecovery { |
||
34 | recovery as actionRecovery; |
||
35 | } |
||
36 | |||
37 | use User\ActionApprove { |
||
38 | approve as actionApprove; |
||
39 | } |
||
40 | |||
41 | /** |
||
42 | * Make logout if user is signIn |
||
43 | * @throws ForbiddenException |
||
44 | */ |
||
45 | public function actionLogout() |
||
59 |