Merge branch 'User/fix-info' into 'master'

fixed info messages

See merge request fronk/thetool!1789
This commit is contained in:
Luca Haid
2025-09-23 11:24:30 +00:00
2 changed files with 7 additions and 3 deletions

View File

@@ -190,9 +190,7 @@ class UserController extends mfBaseController
$user->apikey = $user->createApiKey();
$user->save();
$this->layout()->setFlash("API Key erfolgreich generiert.", "success");
$this->redirect("User", "edit", ['id' => $id]);
self::returnJson(['success' => true]);
}
protected function saveAction() {

View File

@@ -275,6 +275,12 @@ Vue.component("UserEdit", {
return;
}
if (this.isNewUser && !this.password.new) {
window.notify('error', 'Bitte Passwort angeben.');
this.isSaving = false;
return;
}
if (this.password.new && this.password.new !== this.password.repeat) {
window.notify('error', 'Die Passwörter stimmen nicht überein!');
this.isSaving = false;