|
@@ -40,4 +40,11 @@ class HelloController extends Controller
|
|
$user->resetPassword($password);
|
|
$user->resetPassword($password);
|
|
$user->save();
|
|
$user->save();
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ public function actionChangePassword($username, $password)
|
|
|
|
+ {
|
|
|
|
+ $user = User::findByUsername($username);
|
|
|
|
+ $user->resetPassword($password);
|
|
|
|
+ $user->save();
|
|
|
|
+ }
|
|
}
|
|
}
|