add resend functionality

This commit is contained in:
Antonio Ramirez
2016-12-09 01:39:55 +01:00
parent 6f9cc5188e
commit c3aad1b47d
11 changed files with 310 additions and 53 deletions

View File

@ -15,4 +15,9 @@ class SocialNetworkAccountQuery extends ActiveQuery
]
);
}
public function whereCode($code)
{
return $this->andWhere(['code' => md5($code)]);
}
}

View File

@ -22,4 +22,9 @@ class UserQuery extends ActiveQuery
{
return $this->andWhere(['username' => $username]);
}
public function whereId($id)
{
return $this->andWhere(['id' => $id]);
}
}