JSON -> Marshal
This commit is contained in:
parent
0f936362d8
commit
7615e29b37
|
@ -3,7 +3,6 @@ require_relative '../project'
|
||||||
require_relative '../sshkey'
|
require_relative '../sshkey'
|
||||||
|
|
||||||
require 'sqlite3'
|
require 'sqlite3'
|
||||||
require 'json'
|
|
||||||
|
|
||||||
module EmacsCollab
|
module EmacsCollab
|
||||||
module Database
|
module Database
|
||||||
|
@ -46,7 +45,7 @@ module EmacsCollab
|
||||||
|
|
||||||
def update_user(user)
|
def update_user(user)
|
||||||
@db.execute("UPDATE Users SET keys = ? WHERE name = ?",
|
@db.execute("UPDATE Users SET keys = ? WHERE name = ?",
|
||||||
[JSON.generate(user.keys),user.id])
|
[Marshal.dump(user.keys),user.id])
|
||||||
end
|
end
|
||||||
|
|
||||||
def change_user_password(user,hash,salt)
|
def change_user_password(user,hash,salt)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user