1 | <?php |
||
26 | class User extends FrontAppController |
||
27 | { |
||
28 | const EVENT_USER_LOGIN_SUCCESS = 'user.login.success'; |
||
29 | const EVENT_USER_LOGIN_FAIL = 'user.login.fail'; |
||
30 | const EVENT_USER_REGISTER_SUCCESS = 'user.signup.success'; |
||
31 | const EVENT_USER_REGISTER_FAIL = 'user.signup.fail'; |
||
32 | const EVENT_USER_RECOVERY_SUCCESS = 'user.recovery.success'; |
||
33 | |||
34 | use User\ActionLogin { |
||
35 | login as actionLogin; |
||
36 | } |
||
37 | |||
38 | use User\ActionSignup { |
||
39 | signup as actionSignup; |
||
40 | } |
||
41 | |||
42 | use User\ActionSocialAuth { |
||
43 | socialauth as actionSocialauth; |
||
44 | } |
||
45 | |||
46 | use User\ActionRecovery { |
||
47 | recovery as actionRecovery; |
||
48 | } |
||
49 | |||
50 | use User\ActionApprove { |
||
51 | approve as actionApprove; |
||
52 | } |
||
53 | |||
54 | /** |
||
55 | * Make logout if user is signIn |
||
56 | * @throws ForbiddenException |
||
57 | */ |
||
58 | public function actionLogout() |
||
71 | } |
||
72 |