account refactor
This commit is contained in:
@@ -42,4 +42,16 @@ class AccountController extends Controller
|
||||
return ok();
|
||||
}
|
||||
|
||||
public function updateEmail(Request $request)
|
||||
{
|
||||
|
||||
try {
|
||||
$this->authService->updateEmail($request->input("email"));
|
||||
} catch (Throwable $th) {
|
||||
return fail($th);
|
||||
}
|
||||
|
||||
return ok();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user