Merge pull request #1103 from taigaio/allow-to-relogin-through-url
Allow to force re-login through urlstable
commit
f36b298e46
|
@ -37,12 +37,13 @@ class LoginPage
|
|||
|
||||
constructor: (currentUserService, $location, $navUrls, $routeParams) ->
|
||||
if currentUserService.isAuthenticated()
|
||||
url = $navUrls.resolve("home")
|
||||
if $routeParams['next']
|
||||
url = $routeParams['next']
|
||||
$location.search('next', null)
|
||||
if not $routeParams['force_login']
|
||||
url = $navUrls.resolve("home")
|
||||
if $routeParams['next']
|
||||
url = decodeURIComponent($routeParams['next'])
|
||||
$location.search('next', null)
|
||||
|
||||
$location.path(url)
|
||||
$location.url(url)
|
||||
|
||||
|
||||
module.controller('LoginPage', LoginPage)
|
||||
|
|
Loading…
Reference in New Issue