When username contains special chars like ., -, '/, PPResume would fail to generate and set a valid logto username as logto do not allow special chars (with_` as the only exception) as part of the username.
To Reproduce
Steps to reproduce the behavior:
Register a new account with email like a.b@xxx.com
Check whether the new account has a valid username
Actual Behavior
The new registered account would have null username
Expected Behavior
The new registered account should have a sanitized username as well.
Description
When username contains special chars like
.
,-
, '/, PPResume would fail to generate and set a valid logto username as logto do not allow special chars (with
_` as the only exception) as part of the username.To Reproduce
Steps to reproduce the behavior:
a.b@xxx.com
Actual Behavior
The new registered account would have
null
usernameExpected Behavior
The new registered account should have a sanitized username as well.
[Optional] Screenshots
NA
Additional Context
This is a similar bug to https://github.com/ppresume/ppresume/issues/166