-
hi! How can i edit message text if user failed authentication. login: function(user, password) {
this.clear();
return fetch('auth.php', {
method: 'POST',
body: JSON.stringify({user, password}),
headers:{
'Content-Type': 'application/json'
}
}).then(res => res.json());
}, How can I edit the error text: "Wrong username or password try again!" ? |
Beta Was this translation helpful? Give feedback.
Answered by
jcubic
Dec 18, 2023
Replies: 2 comments 3 replies
-
You can customize all the strings with the const term = $('body').terminal({}, {
login(user, passwd) {
return null
},
strings: {
wrongPasswordTryAgain: 'Bad Passwd'
}
}); |
Beta Was this translation helpful? Give feedback.
0 replies
-
Thanks! Where can i read about |
Beta Was this translation helpful? Give feedback.
3 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think that I should list all the strings at API Reference in translation section. Also, add this to the Wiki. Right now the TypeScript types and the source code are the only documentation. There is a lot of documentation that is missing.
PS: You should ask this below the answer.