Changing logout redirect to honor whatever the http_url setting happens to be.
This commit is contained in:
parent
0ac518e395
commit
4a3571a4e8
|
@ -191,7 +191,7 @@ class Users( object ):
|
|||
@update_client
|
||||
def logout( self ):
|
||||
yield dict(
|
||||
redirect = u"/",
|
||||
redirect = self.__http_url + u"/",
|
||||
deauthenticated = True,
|
||||
)
|
||||
|
||||
|
|
|
@ -124,7 +124,7 @@ class Test_users( Test_controller ):
|
|||
def test_logout( self ):
|
||||
result = self.http_post( "/users/logout", dict() )
|
||||
|
||||
assert result[ u"redirect" ] == u"/"
|
||||
assert result[ u"redirect" ] == self.settings[ u"global" ].get( u"luminotes.http_url" ) + u"/"
|
||||
assert result[ u"deauthenticated" ]
|
||||
|
||||
def test_current_after_login( self ):
|
||||
|
|
Reference in New Issue