mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 14:33:43 -05:00
Merge pull request #16991 from overleaf/ab-sso-login-url
[web] Change /institutional-login URL to /sso-login GitOrigin-RevId: 0856f3f63e3bba3431dd554b4b65fe913d8a50fe
This commit is contained in:
parent
0d00c3952c
commit
308708d8a7
3 changed files with 3 additions and 2 deletions
|
@ -1769,6 +1769,7 @@
|
||||||
"sso_link_invite_has_been_sent_to_email": "An SSO invite reminder has been sent to <0>__email__</0>",
|
"sso_link_invite_has_been_sent_to_email": "An SSO invite reminder has been sent to <0>__email__</0>",
|
||||||
"sso_link_now_or_later": "We need to link your account with the group identity provider. You can either do this now, or do this later.",
|
"sso_link_now_or_later": "We need to link your account with the group identity provider. You can either do this now, or do this later.",
|
||||||
"sso_link_your_group_uses_sso": "The group you are part of uses single sign-on",
|
"sso_link_your_group_uses_sso": "The group you are part of uses single sign-on",
|
||||||
|
"sso_login": "SSO login",
|
||||||
"sso_logs": "SSO Logs",
|
"sso_logs": "SSO Logs",
|
||||||
"sso_not_active": "SSO not active",
|
"sso_not_active": "SSO not active",
|
||||||
"sso_not_linked": "You have not linked your account to __provider__. Please log in to your account another way and link your __provider__ account via your account settings.",
|
"sso_not_linked": "You have not linked your account to __provider__. Please log in to your account another way and link your __provider__ account via your account settings.",
|
||||||
|
|
|
@ -348,7 +348,7 @@ class UserHelper {
|
||||||
if (body.message && body.message.type === 'error') {
|
if (body.message && body.message.type === 'error') {
|
||||||
throw new Error(`register api error: ${body.message.text}`)
|
throw new Error(`register api error: ${body.message.text}`)
|
||||||
}
|
}
|
||||||
if (body.redir === '/institutional-login') {
|
if (body.redir === '/sso-login') {
|
||||||
throw new Error(
|
throw new Error(
|
||||||
`cannot register intitutional email: ${options.json.email}`
|
`cannot register intitutional email: ${options.json.email}`
|
||||||
)
|
)
|
||||||
|
|
|
@ -554,7 +554,7 @@ describe('UserController', function () {
|
||||||
})
|
})
|
||||||
|
|
||||||
it('should redirect after logout', function (done) {
|
it('should redirect after logout', function (done) {
|
||||||
this.req.body.redirect = '/institutional-login'
|
this.req.body.redirect = '/sso-login'
|
||||||
this.req.session.destroy = sinon.stub().callsArgWith(0)
|
this.req.session.destroy = sinon.stub().callsArgWith(0)
|
||||||
this.res.redirect = url => {
|
this.res.redirect = url => {
|
||||||
url.should.equal(this.req.body.redirect)
|
url.should.equal(this.req.body.redirect)
|
||||||
|
|
Loading…
Reference in a new issue