chore: merge master

This commit is contained in:
Maël Gangloff
2024-08-06 22:35:21 +02:00
10 changed files with 136 additions and 47 deletions

View File

@@ -19,6 +19,13 @@ export function RegisterForm() {
register(data.username, data.password).then(() => {
navigate('/home')
}).catch((e) => {
if (e.response?.status === 429) {
const duration = e.response.headers['retry-after']
setError(t`Please retry after ${duration} seconds`)
return;
}
if (e.response.data.message !== undefined) {
setError(e.response.data.message)
} else {