mirror of
https://github.com/openstf/stf
synced 2025-10-04 10:19:30 +02:00
Require trailing slash in auth URLs.
This commit is contained in:
parent
b19e1784ab
commit
2d726a4f75
4 changed files with 8 additions and 8 deletions
|
@ -64,10 +64,10 @@ module.exports = function(options) {
|
|||
})
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.redirect('/auth/ldap')
|
||||
res.redirect('/auth/ldap/')
|
||||
})
|
||||
|
||||
app.get('/auth/ldap', function(req, res) {
|
||||
app.get('/auth/ldap/', function(req, res) {
|
||||
res.render('index')
|
||||
})
|
||||
|
||||
|
|
|
@ -63,10 +63,10 @@ module.exports = function(options) {
|
|||
})
|
||||
|
||||
app.get('/', function(req, res) {
|
||||
res.redirect('/auth/mock')
|
||||
res.redirect('/auth/mock/')
|
||||
})
|
||||
|
||||
app.get('/auth/mock', function(req, res) {
|
||||
app.get('/auth/mock/', function(req, res) {
|
||||
res.render('index')
|
||||
})
|
||||
|
||||
|
|
|
@ -5,12 +5,12 @@ define(['./app'], function(app) {
|
|||
, function($routeProvider, $locationProvider) {
|
||||
$locationProvider.html5Mode(true)
|
||||
$routeProvider
|
||||
.when('/auth/ldap', {
|
||||
.when('/auth/ldap/', {
|
||||
templateUrl: '/static/auth/ldap/views/signin.html'
|
||||
, controller: 'SignInCtrl'
|
||||
})
|
||||
.otherwise({
|
||||
redirectTo: '/auth/ldap'
|
||||
redirectTo: '/auth/ldap/'
|
||||
})
|
||||
}
|
||||
])
|
||||
|
|
|
@ -5,12 +5,12 @@ define(['./app'], function(app) {
|
|||
, function($routeProvider, $locationProvider) {
|
||||
$locationProvider.html5Mode(true)
|
||||
$routeProvider
|
||||
.when('/auth/mock', {
|
||||
.when('/auth/mock/', {
|
||||
templateUrl: '/static/auth/mock/views/partials/signin.html'
|
||||
, controller: 'SignInCtrl'
|
||||
})
|
||||
.otherwise({
|
||||
redirectTo: '/auth/mock'
|
||||
redirectTo: '/auth/mock/'
|
||||
})
|
||||
}
|
||||
])
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue