@@ -242,7 +242,7 @@ discard block |
||
| 242 | 242 | * |
| 243 | 243 | * @param string $sessionId |
| 244 | 244 | * @param string $email |
| 245 | - * @return void |
|
| 245 | + * @return BakaUsers |
|
| 246 | 246 | */ |
| 247 | 247 | private function newAuthSession(string $sessionId, string $email) |
| 248 | 248 | { |
@@ -423,7 +423,6 @@ discard block |
||
| 423 | 423 | * Set the email config array we are going to be sending. |
| 424 | 424 | * |
| 425 | 425 | * @todo deprecated move to notifications |
| 426 | - * @param String $emailAction |
|
| 427 | 426 | * @param Users $user |
| 428 | 427 | * @return void |
| 429 | 428 | */ |
@@ -4,29 +4,29 @@ |
||
| 4 | 4 | |
| 5 | 5 | namespace Canvas\Api\Controllers; |
| 6 | 6 | |
| 7 | -use Canvas\Models\Users; |
|
| 7 | +use Baka\Auth\Models\Sessions; |
|
| 8 | +use Baka\Auth\Models\Users as BakaUsers; |
|
| 9 | +use Canvas\Auth\Factory; |
|
| 10 | +use Canvas\Exception\ModelException; |
|
| 11 | +use Canvas\Exception\ServerErrorHttpException; |
|
| 8 | 12 | use Canvas\Models\Sources; |
| 9 | 13 | use Canvas\Models\UserLinkedSources; |
| 10 | -use Canvas\Exception\ServerErrorHttpException; |
|
| 11 | -use Canvas\Exception\ModelException; |
|
| 12 | -use Baka\Auth\Models\Users as BakaUsers; |
|
| 14 | +use Canvas\Models\Users; |
|
| 15 | +use Canvas\Notifications\PasswordUpdate; |
|
| 16 | +use Canvas\Notifications\ResetPassword; |
|
| 13 | 17 | use Canvas\Traits\AuthTrait; |
| 14 | 18 | use Canvas\Traits\SocialLoginTrait; |
| 19 | +use Canvas\Traits\TokenTrait; |
|
| 20 | +use Canvas\Validation as CanvasValidation; |
|
| 21 | +use Canvas\Validations\PasswordValidation; |
|
| 15 | 22 | use Exception; |
| 23 | +use Lcobucci\JWT\Builder; |
|
| 24 | +use Lcobucci\JWT\Signer\Hmac\Sha512; |
|
| 16 | 25 | use Phalcon\Http\Response; |
| 17 | 26 | use Phalcon\Validation\Validator\Confirmation; |
| 18 | 27 | use Phalcon\Validation\Validator\Email as EmailValidator; |
| 19 | 28 | use Phalcon\Validation\Validator\PresenceOf; |
| 20 | 29 | use Phalcon\Validation\Validator\StringLength; |
| 21 | -use Baka\Auth\Models\Sessions; |
|
| 22 | -use Canvas\Auth\Factory; |
|
| 23 | -use Canvas\Validation as CanvasValidation; |
|
| 24 | -use Canvas\Notifications\ResetPassword; |
|
| 25 | -use Canvas\Notifications\PasswordUpdate; |
|
| 26 | -use Canvas\Validations\PasswordValidation; |
|
| 27 | -use Canvas\Traits\TokenTrait; |
|
| 28 | -use Lcobucci\JWT\Builder; |
|
| 29 | -use Lcobucci\JWT\Signer\Hmac\Sha512; |
|
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | 32 | * Class AuthController. |