mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge branch 'master' of github.com:sharelatex/web-sharelatex
This commit is contained in:
@@ -170,6 +170,7 @@ module.exports =
|
||||
metrics.inc "user.password-change"
|
||||
oldPass = req.body.currentPassword
|
||||
AuthenticationManager.authenticate _id: req.session.user._id, oldPass, (err, user)->
|
||||
return callback(err) if err?
|
||||
if(user)
|
||||
logger.log user: req.session.user, "changing password"
|
||||
newPassword1 = req.body.newPassword1
|
||||
@@ -198,17 +199,20 @@ module.exports =
|
||||
redirectUserToDropboxAuth: (req, res)->
|
||||
user_id = req.session.user._id
|
||||
dropboxHandler.getDropboxRegisterUrl user_id, (err, url)->
|
||||
return callback(err) if err?
|
||||
logger.log url:url, "redirecting user for dropbox auth"
|
||||
res.redirect url
|
||||
|
||||
completeDropboxRegistration: (req, res)->
|
||||
user_id = req.session.user._id
|
||||
dropboxHandler.completeRegistration user_id, (err, success)->
|
||||
return callback(err) if err?
|
||||
res.redirect('/user/settings#dropboxSettings')
|
||||
|
||||
unlinkDropbox: (req, res)->
|
||||
user_id = req.session.user._id
|
||||
dropboxHandler.unlinkAccount user_id, (err, success)->
|
||||
return callback(err) if err?
|
||||
res.redirect('/user/settings#dropboxSettings')
|
||||
|
||||
deleteUser: (req, res)->
|
||||
|
||||
@@ -26,9 +26,9 @@ UserSchema = new Schema
|
||||
pdfViewer : {type : String, default: "pdfjs"}
|
||||
}
|
||||
features : {
|
||||
collaborators: {type:Number, default:1}
|
||||
versioning: {type:Boolean, default:false}
|
||||
dropbox: {type:Boolean, default:false}
|
||||
collaborators: { type:Number, default: Settings.defaultFeatures.collaborators }
|
||||
versioning: { type:Boolean, default: Settings.defaultFeatures.versioning }
|
||||
dropbox: { type:Boolean, default: Settings.defaultFeatures.dropbox }
|
||||
}
|
||||
featureSwitches : {
|
||||
dropbox: {type:Boolean, default:true},
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
.row-fluid
|
||||
.span12
|
||||
div.alert.alert-success.open-source
|
||||
| ShareLaTeX is open source.
|
||||
a(href="https://github.com/sharelatex/sharelatex") Fork us on GitHub.
|
||||
.span12
|
||||
.small-footer
|
||||
ul
|
||||
|
||||
@@ -34,7 +34,7 @@ block content
|
||||
.row
|
||||
.span4.offset4.bonus-banner
|
||||
.title
|
||||
a(href='mailto:?subject=Online LaTeX editor you may like, &body=Hey, I have been using the online LaTeX editor ShareLaTeX recently and thought you might like to check it out. #{encodeURIComponent(buildReferalUrl("e"))}', title='Share by Email').email Email us to your friends
|
||||
a(href='mailto:?subject=Online LaTeX editor you may like &body=Hey, I have been using the online LaTeX editor ShareLaTeX recently and thought you might like to check it out. #{encodeURIComponent(buildReferalUrl("e"))}', title='Share by Email').email Email us to your friends
|
||||
|
||||
.row
|
||||
.span4.offset4.bonus-banner
|
||||
|
||||
@@ -150,8 +150,8 @@ block content
|
||||
mixin plan(plans.groupAnnualPlans[2], "", false)
|
||||
.tab-pane.student-pricing
|
||||
|
||||
include ../general/small-footer
|
||||
link(rel='stylesheet', href='/brand/plans.css?fingerprint='+fingerprint('/brand/mainStyle.css'))
|
||||
include ../general/small-footer
|
||||
link(rel='stylesheet', href='/brand/plans.css?fingerprint='+fingerprint('/brand/mainStyle.css'))
|
||||
|
||||
script
|
||||
mixpanel.track("Page Viewed", { name: "plans" })
|
||||
script
|
||||
mixpanel.track("Page Viewed", { name: "plans" })
|
||||
|
||||
@@ -152,6 +152,8 @@ block content
|
||||
p Every few months we send a news letter out summarizing the new features available, if you would prefer to not receive this email then you are free to unsubscribe below at any time
|
||||
a#unsubscribeFromNewsletter.btn.btn-danger(data-csrf=csrfToken) Unsubscribe
|
||||
|
||||
include ../general/small-footer
|
||||
|
||||
#changePasswordModal(style='display: none')
|
||||
.modal
|
||||
form#changePasswordForm(method="post", action="/user/password/update")
|
||||
|
||||
Reference in New Issue
Block a user