Cleanup container init.
This commit is contained in:
parent
8657380530
commit
e5038f7bbf
3 changed files with 27 additions and 16 deletions
|
|
@ -56,7 +56,7 @@ func (r *Register) Post(c echo.Context) error {
|
|||
}
|
||||
|
||||
// Attempt creating the user
|
||||
u, err := r.Container.Ent.User.
|
||||
u, err := r.Container.ORM.User.
|
||||
Create().
|
||||
SetUsername(form.Username).
|
||||
SetPassword(string(pwHash)).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue