+
+
+
+
+
{{ username.username }}
+
{{ gradidoId }}
+
-
- {{ username.username }}
-
-
@@ -85,6 +99,9 @@ export default {
initials: `${this.$store.state.firstName[0]}${this.$store.state.lastName[0]}`,
}
},
+ hasUsername() {
+ return this.$store.state.username && this.$store.state.username.length > 0
+ },
gradidoId() {
const name = this.$store.state.username
? this.$store.state.username
diff --git a/shared/src/schema/user.schema.ts b/shared/src/schema/user.schema.ts
index 494ee03b6..4e15ca9fa 100644
--- a/shared/src/schema/user.schema.ts
+++ b/shared/src/schema/user.schema.ts
@@ -22,6 +22,8 @@ const RESERVED_ALIAS = [
'user',
'usr',
'var',
+ 'reserved',
+ 'undefined'
]
export const aliasSchema = string()