webapi: Security: Show language independent webapi messages
This commit is contained in:
parent
03ed626da6
commit
534f200eb9
@ -78,7 +78,9 @@
|
|||||||
"9007": "Stunde muss eine Zahl zwischen {min} und {max} sein!",
|
"9007": "Stunde muss eine Zahl zwischen {min} und {max} sein!",
|
||||||
"9008": "Minute muss eine Zahl zwischen {min} und {max} sein!",
|
"9008": "Minute muss eine Zahl zwischen {min} und {max} sein!",
|
||||||
"9009": "Sekunde muss eine Zahl zwischen {min} und {max} sein!",
|
"9009": "Sekunde muss eine Zahl zwischen {min} und {max} sein!",
|
||||||
"9010": "Uhrzeit aktualisiert!"
|
"9010": "Uhrzeit aktualisiert!",
|
||||||
|
"10001": "Das Passwort muss zwischen 8 und {max} Zeichen lang sein!",
|
||||||
|
"10002": "Authentifizierung erfolgreich!"
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"LiveData": "Live Daten",
|
"LiveData": "Live Daten",
|
||||||
|
|||||||
@ -78,7 +78,9 @@
|
|||||||
"9007": "Hour must be a number between {min} and {max}!",
|
"9007": "Hour must be a number between {min} and {max}!",
|
||||||
"9008": "Minute must be a number between {min} and {max}!",
|
"9008": "Minute must be a number between {min} and {max}!",
|
||||||
"9009": "Second must be a number between {min} and {max}!",
|
"9009": "Second must be a number between {min} and {max}!",
|
||||||
"9010": "Time updated!"
|
"9010": "Time updated!",
|
||||||
|
"10001": "Password must between 8 and {max} characters long!",
|
||||||
|
"10002": "Authentication successfull!"
|
||||||
},
|
},
|
||||||
"home": {
|
"home": {
|
||||||
"LiveData": "Live Data",
|
"LiveData": "Live Data",
|
||||||
|
|||||||
@ -115,7 +115,7 @@ export default defineComponent({
|
|||||||
.then((response) => handleResponse(response, this.$emitter, this.$router))
|
.then((response) => handleResponse(response, this.$emitter, this.$router))
|
||||||
.then(
|
.then(
|
||||||
(response) => {
|
(response) => {
|
||||||
this.alertMessage = response.message;
|
this.alertMessage = this.$t('apiresponse.' + response.code, response.param);
|
||||||
this.alertType = response.type;
|
this.alertType = response.type;
|
||||||
this.showAlert = true;
|
this.showAlert = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user