witten
/
luminotes
Archived
1
0
Fork 0

Changing logout redirect to honor whatever the http_url setting happens to be.

This commit is contained in:
Dan Helfman 2007-08-02 18:57:53 +00:00
parent 0ac518e395
commit 4a3571a4e8
2 changed files with 2 additions and 2 deletions

View File

@ -191,7 +191,7 @@ class Users( object ):
@update_client @update_client
def logout( self ): def logout( self ):
yield dict( yield dict(
redirect = u"/", redirect = self.__http_url + u"/",
deauthenticated = True, deauthenticated = True,
) )

View File

@ -124,7 +124,7 @@ class Test_users( Test_controller ):
def test_logout( self ): def test_logout( self ):
result = self.http_post( "/users/logout", dict() ) 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" ] assert result[ u"deauthenticated" ]
def test_current_after_login( self ): def test_current_after_login( self ):