Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 7975702e authored by Fahim Salam Chowdhury's avatar Fahim Salam Chowdhury 👽
Browse files

Improve userName & displayName validation on accountCreation stage

When creating new account, frontend calls `/accounts/validate_fields`
api to validate username & displayname. Then it again calls
`/accounts/create` to create new account.

There is a chance any malicious user can detect it & validate userName &
displayName against proper names but create account with invalid values
by making js calls.

To mitigate this issue, we will save the validated username &
displayname on user's session & `/create` endpoint won't take these
params. These values will be fetched from the session.

issue: https://gitlab.e.foundation/e/infra/backlog/-/issues/3551
parent 916daba2
Loading
Loading
Loading
Loading