mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Merge pull request #843 from sharelatex/ew-collabratec
This commit is contained in:
commit
c1859f3e80
1 changed files with 3 additions and 0 deletions
|
@ -80,6 +80,9 @@ class User
|
||||||
update["features.#{key}"] = value
|
update["features.#{key}"] = value
|
||||||
UserModel.update { _id: @id }, update, callback
|
UserModel.update { _id: @id }, update, callback
|
||||||
|
|
||||||
|
setOverleafId: (overleaf_id, callback = (error) ->) ->
|
||||||
|
UserModel.update { _id: @id }, { 'overleaf.id': overleaf_id }, callback
|
||||||
|
|
||||||
logout: (callback = (error) ->) ->
|
logout: (callback = (error) ->) ->
|
||||||
@getCsrfToken (error) =>
|
@getCsrfToken (error) =>
|
||||||
return callback(error) if error?
|
return callback(error) if error?
|
||||||
|
|
Loading…
Reference in a new issue