Merge pull request #843 from sharelatex/ew-collabratec

This commit is contained in:
Ersun Warncke 2018-08-29 10:17:02 -04:00 committed by GitHub
commit c1859f3e80

View file

@ -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?