Добавлена страница с отправкой письма для восстановления пароля от аккаунта

This commit is contained in:
ErickSkrauch committed 2016-02-28 00:26:13 +03:00
1 parent af2580795a
commit 5c056710bc
2 files changed
+4 -3

No files matched your search

+1
View File
@@ -126,6 +126,7 @@ class OauthController extends Controller {
if (!$account->canAutoApprove($clientModel, $authParams['scopes'])) {
$isAccept = Yii::$app->request->post('accept');
$isAccept = null;
if ($isAccept === null) {
throw new AcceptRequiredException();
}
+3 -3
View File
@@ -206,9 +206,9 @@ class Account extends ActiveRecord implements IdentityInterface {
* @return bool
*/
public function canAutoApprove(OauthClient $client, array $scopes = []) {
if ($client->is_trusted) {
return true;
}
//if ($client->is_trusted) {
// return true;
//}
/** @var OauthSession|null $session */
$session = $this->getSessions()->andWhere(['client_id' => $client->id])->one();