mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
Fix broken signup with Twitter
This commit is contained in:
parent
27a07054d7
commit
4e9d9138d6
1 changed files with 1 additions and 2 deletions
|
@ -141,9 +141,8 @@ class UsersController < ApplicationController
|
||||||
auth = session[:authentication]
|
auth = session[:authentication]
|
||||||
if auth && auth[:email] == params[:email] && auth[:email_valid]
|
if auth && auth[:email] == params[:email] && auth[:email_valid]
|
||||||
user.active = true
|
user.active = true
|
||||||
else
|
|
||||||
user.password_required
|
|
||||||
end
|
end
|
||||||
|
user.password_required unless auth
|
||||||
|
|
||||||
Mothership.register_nickname( user.username, user.email ) if user.valid? and SiteSetting.call_mothership?
|
Mothership.register_nickname( user.username, user.email ) if user.valid? and SiteSetting.call_mothership?
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue