added recovery process
This commit is contained in:
@ -1,9 +1,13 @@
|
||||
<?php
|
||||
namespace Da\User\Query;
|
||||
|
||||
use Da\User\Model\Token;
|
||||
use yii\db\ActiveQuery;
|
||||
|
||||
class TokenQuery extends ActiveQuery
|
||||
{
|
||||
|
||||
public function whereIsRecoveryType($userId, $code)
|
||||
{
|
||||
return $this->andWhere(['user_id' => $userId, 'code' => $code, 'type' => Token::TYPE_RECOVERY]);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user