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