Removed workaround with invalid role_ids. Improved code layout.
This commit is contained in:
parent
ab83b577ba
commit
9b84a64a37
1 changed files with 2 additions and 2 deletions
|
@ -44,7 +44,7 @@ class Index extends App.ControllerContent
|
||||||
@params.login = @params.email
|
@params.login = @params.email
|
||||||
|
|
||||||
@params.signup = true
|
@params.signup = true
|
||||||
@params.role_ids = [0]
|
@params.role_ids = []
|
||||||
@log 'notice', 'updateAttributes', @params
|
@log 'notice', 'updateAttributes', @params
|
||||||
user = new App.User
|
user = new App.User
|
||||||
user.load(@params)
|
user.load(@params)
|
||||||
|
@ -54,7 +54,7 @@ class Index extends App.ControllerContent
|
||||||
)
|
)
|
||||||
if errors
|
if errors
|
||||||
@log 'error new', errors
|
@log 'error new', errors
|
||||||
@formValidate( form: e.target, errors: errors )
|
@formValidate(form: e.target, errors: errors)
|
||||||
@formEnable(e)
|
@formEnable(e)
|
||||||
return false
|
return false
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue