Skip to content
This repository was archived by the owner on Dec 11, 2018. It is now read-only.

Commit 66691f7

Browse files
committed
Fix initial login screen
Redirect to the new home screen rather than a specific report.
1 parent ef37fc9 commit 66691f7

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

src/Controllers/Login.php

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -56,15 +56,7 @@ protected function handlePost() {
5656

5757
if ( $authed ) {
5858
$this->flash( 'info', $this->i18nContext->message( 'login-success' ) );
59-
if ( $next === false ) {
60-
if ( $this->authManager->isAdmin() ) {
61-
$next = $this->urlFor( 'reports_home' );
62-
} else {
63-
$next = $this->urlFor( 'proposals_home' );
64-
}
65-
}
66-
67-
$this->redirect( $next );
59+
$this->redirect( $next ?: $this->urlFor( 'home' ) );
6860

6961
} else {
7062
$this->flash( 'error', $this->i18nContext->message( 'login-failed' ) );

0 commit comments

Comments
 (0)