mirror of
https://github.com/elyby/accounts.git
synced 2025-05-31 14:11:46 +05:30
Форма смены ника теперь принимает аккаунт через конструктор
This commit is contained in:
@@ -90,7 +90,8 @@ class AccountsController extends Controller {
|
||||
}
|
||||
|
||||
public function actionChangeUsername() {
|
||||
$model = new ChangeUsernameForm();
|
||||
$account = Yii::$app->user->identity;
|
||||
$model = new ChangeUsernameForm($account);
|
||||
$model->load(Yii::$app->request->post());
|
||||
if (!$model->change()) {
|
||||
return [
|
||||
|
Reference in New Issue
Block a user