forked from ProjectSegfault/website
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({
|
const BodyTypeSchema = Joi.object({
|
||||||
username: Joi.string()
|
username: Joi.string()
|
||||||
.required()
|
.required()
|
||||||
.alphanum()
|
.pattern(
|
||||||
.lowercase(),
|
/^[a-z_][a-z0-9_]{0,20}$/
|
||||||
|
)
|
||||||
|
.message("Invalid username ([A-Za-z0-9_])"),
|
||||||
email: Joi.string().email().required(),
|
email: Joi.string().email().required(),
|
||||||
ssh: Joi.string()
|
ssh: Joi.string()
|
||||||
.required()
|
.required()
|
||||||
|
Loading…
Reference in New Issue
Block a user