add overleaf method

This commit is contained in:
Ersun Warncke 2018-08-22 09:20:12 -04:00
parent eba14ee7d6
commit dd056e36ae

View file

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