auto login encryption done…
This commit is contained in:
1 parent
c158375d02
commit
aacd9da9fb
9 files changed
+28
-36
No files matched your search
@@ -1,15 +1,15 @@
|
||||
class OtherAccount
|
||||
include Mongoid::Document
|
||||
include Mongoid::Timestamps
|
||||
include Mongoid::Encryptor
|
||||
|
||||
field :user_id
|
||||
field :type
|
||||
field :email
|
||||
field :encrypted_password
|
||||
|
||||
attr_encrypted :encrypted_password, :key => 'rulingorbit.com', :encode => true
|
||||
encrypts :encrypted_password, :mode => :symmetric, :password => 'rulingcom'
|
||||
|
||||
belongs_to :user
|
||||
|
||||
|
||||
|
||||
end
|
||||
@@ -17,7 +17,7 @@ class User
|
||||
|
||||
has_many :managing_apps,:class_name => "AppManager"
|
||||
has_one :desktop, :autosave => true, :dependent => :destroy
|
||||
has_many :otheraccount, :autosave => true, :dependent => :destroy
|
||||
has_many :other_accounts, :autosave => true, :dependent => :destroy
|
||||
belongs_to :role
|
||||
has_and_belongs_to_many :sub_roles
|
||||
accepts_nested_attributes_for :attribute_values, :allow_destroy => true
|
||||
|
||||
Reference in new issue
Block a user