Commit ee443d91 by Torkel Ödegaard

Fixed account creation on first github login

parent 29c93309
Subproject commit 7c72705bc5418ddf7030b3b50e86b236bd07e1fc Subproject commit 318338f967a4c89cceaa1d1ca7b6a8e6de383f9f
...@@ -56,7 +56,7 @@ func OAuthLogin(ctx *middleware.Context) { ...@@ -56,7 +56,7 @@ func OAuthLogin(ctx *middleware.Context) {
// create account if missing // create account if missing
if err == m.ErrAccountNotFound { if err == m.ErrAccountNotFound {
cmd := &m.CreateAccountCommand{ cmd := m.CreateAccountCommand{
Login: userInfo.Email, Login: userInfo.Email,
Email: userInfo.Email, Email: userInfo.Email,
Name: userInfo.Name, Name: userInfo.Name,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment