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) ->
|
constructor: (currentUserService, $location, $navUrls, $routeParams) ->
|
||||||
if currentUserService.isAuthenticated()
|
if currentUserService.isAuthenticated()
|
||||||
url = $navUrls.resolve("home")
|
if not $routeParams['force_login']
|
||||||
if $routeParams['next']
|
url = $navUrls.resolve("home")
|
||||||
url = $routeParams['next']
|
if $routeParams['next']
|
||||||
$location.search('next', null)
|
url = decodeURIComponent($routeParams['next'])
|
||||||
|
$location.search('next', null)
|
||||||
|
|
||||||
$location.path(url)
|
$location.url(url)
|
||||||
|
|
||||||
|
|
||||||
module.controller('LoginPage', LoginPage)
|
module.controller('LoginPage', LoginPage)
|
||||||
|
|
Loading…
Reference in New Issue