Makes welcome screen work using a sessions controller

This commit is contained in:
kikito
2015-09-10 17:41:37 +02:00
parent 01acc84679
commit 249aed42c4
3 changed files with 17 additions and 0 deletions

View File

@@ -135,4 +135,8 @@ class User < ActiveRecord::Base
!!(unconfirmed_email && unconfirmed_email !~ OMNIAUTH_EMAIL_REGEX)
end
def show_welcome_screen?
sign_in_count == 1 && unverified? && !organization
end
end