mirror of
https://github.com/ProjectSegfault/website.git
synced 2024-12-23 13:40:00 +05:30
actually fix pubnix uppercase username thing
This commit is contained in:
parent
f4ffef07f4
commit
fd2c1b98ba
@ -15,8 +15,10 @@ export const actions: Actions = {
|
||||
const BodyTypeSchema = Joi.object({
|
||||
username: Joi.string()
|
||||
.required()
|
||||
.alphanum()
|
||||
.lowercase(),
|
||||
.pattern(
|
||||
/^[a-z_][a-z0-9_]{0,20}$/
|
||||
)
|
||||
.message("Invalid username ([A-Za-z0-9_])"),
|
||||
email: Joi.string().email().required(),
|
||||
ssh: Joi.string()
|
||||
.required()
|
||||
|
Loading…
Reference in New Issue
Block a user