Email confirmation for user working

This commit is contained in:
saurabhbhatia committed 2013-11-29 09:26:52 +08:00
1 parent 38b2d02d92
commit 9bc79fddd7
3 files changed
+7 -1

No files matched your search

+5 -1
View File
@@ -5,7 +5,7 @@ class User
include Mongoid::Tree::Ordering # use mongoid-tree because mongoid-ordering needs mongoid(~>3.0)
include Mongoid::Timestamps
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :validatable #, :timeoutable
devise :database_authenticatable, :recoverable, :rememberable, :trackable, :registerable, :validatable, :confirmable #, :timeoutable
mount_uploader :avatar, AvatarUploader
@@ -295,6 +295,10 @@ class User
managed_apps
end
end
# def active_for_authentication?
# super && approved?
# end
private