sample admin users
This commit is contained in:
parent
0f520e67af
commit
cf699e2084
7 changed files with 143 additions and 9 deletions
|
|
@ -54,9 +54,9 @@ func Signup(c *core.Context) *core.Response {
|
|||
// validation rules
|
||||
rules := map[string]interface{}{
|
||||
"name": "required|alphaNumeric",
|
||||
"fullname": "fullname|alphaNumeric",
|
||||
"fullname": "required",
|
||||
"email": "required|email",
|
||||
"password": "required|length:6,10",
|
||||
"password": "required|length:6,20",
|
||||
}
|
||||
// validate
|
||||
v := c.GetValidator().Validate(data, rules)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue