mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
add overleaf method
This commit is contained in:
parent
eba14ee7d6
commit
dd056e36ae
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ class User
|
|||
update["features.#{key}"] = value
|
||||
UserModel.update { _id: @id }, update, callback
|
||||
|
||||
setOverleafId: (overleaf_id, callback = (error) ->) ->
|
||||
UserModel.update { _id: @id }, { 'overleaf.id': overleaf_id }, callback
|
||||
|
||||
logout: (callback = (error) ->) ->
|
||||
@getCsrfToken (error) =>
|
||||
return callback(error) if error?
|
||||
|
|
Loading…
Reference in a new issue