diff --git a/frontend/src/components/UserSettings/UserName.vue b/frontend/src/components/UserSettings/UserName.vue
new file mode 100644
index 000000000..ffc2680ef
--- /dev/null
+++ b/frontend/src/components/UserSettings/UserName.vue
@@ -0,0 +1,101 @@
+
+
+
+
+
+
+
+
+
+ {{ $t('form.username') }}
+
+
+
+ {{ username }}
+
+
+
+
+
+
+
+
+
+ {{ $t('form.save') }}
+
+
+
+
+
+
+
+
+
+
diff --git a/frontend/src/graphql/mutations.js b/frontend/src/graphql/mutations.js
index 802ea1818..8a281aad9 100644
--- a/frontend/src/graphql/mutations.js
+++ b/frontend/src/graphql/mutations.js
@@ -26,6 +26,7 @@ export const forgotPassword = gql`
export const updateUserInfos = gql`
mutation(
+ $alias: String
$firstName: String
$lastName: String
$password: String
@@ -35,6 +36,7 @@ export const updateUserInfos = gql`
$hideAmountGDT: Boolean
) {
updateUserInfos(
+ alias: $alias
firstName: $firstName
lastName: $lastName
password: $password
@@ -145,6 +147,7 @@ export const login = gql`
mutation($email: String!, $password: String!, $publisherId: Int) {
login(email: $email, password: $password, publisherId: $publisherId) {
gradidoID
+ alias
firstName
lastName
language
diff --git a/frontend/src/locales/de.json b/frontend/src/locales/de.json
index a5357e6d9..bfddf4405 100644
--- a/frontend/src/locales/de.json
+++ b/frontend/src/locales/de.json
@@ -166,6 +166,7 @@
"thx": "Danke",
"to": "bis",
"to1": "an",
+ "username": "Nutzername",
"validation": {
"gddCreationTime": "Das Feld {_field_} muss eine Zahl zwischen {min} und {max} mit höchstens einer Nachkommastelle sein",
"gddSendAmount": "Das Feld {_field_} muss eine Zahl zwischen {min} und {max} mit höchstens zwei Nachkommastellen sein",
@@ -319,7 +320,11 @@
"subtitle": "Wenn du dein Passwort vergessen hast, kannst du es hier zurücksetzen."
},
"showAmountGDD": "Dein GDD Betrag ist sichtbar.",
- "showAmountGDT": "Dein GDT Betrag ist sichtbar."
+ "showAmountGDT": "Dein GDT Betrag ist sichtbar.",
+ "username": {
+ "change-username": "Nutzername ändern",
+ "change-success": "Dein Nutzername wurde erfolgreich geändert."
+ }
},
"signin": "Anmelden",
"signup": "Registrieren",
diff --git a/frontend/src/locales/en.json b/frontend/src/locales/en.json
index 42f22f709..b8c71a768 100644
--- a/frontend/src/locales/en.json
+++ b/frontend/src/locales/en.json
@@ -166,6 +166,7 @@
"thx": "Thank you",
"to": "to",
"to1": "to",
+ "username": "Username",
"validation": {
"gddCreationTime": "The field {_field_} must be a number between {min} and {max} with at most one decimal place.",
"gddSendAmount": "The {_field_} field must be a number between {min} and {max} with at most two digits after the decimal point",
@@ -319,7 +320,11 @@
"subtitle": "If you have forgotten your password, you can reset it here."
},
"showAmountGDD": "Your GDD amount is visible.",
- "showAmountGDT": "Your GDT amount is visible."
+ "showAmountGDT": "Your GDT amount is visible.",
+ "username": {
+ "change-username": "Change username",
+ "change-success": "Your username has been successfully changed."
+ }
},
"signin": "Sign in",
"signup": "Sign up",
diff --git a/frontend/src/pages/Settings.vue b/frontend/src/pages/Settings.vue
index 530484d9a..c5ca00f08 100644
--- a/frontend/src/pages/Settings.vue
+++ b/frontend/src/pages/Settings.vue
@@ -3,6 +3,8 @@
+
+
@@ -13,6 +15,7 @@