reload the current url when login in instead of always redirecting to the default app (oc-1873)
This commit is contained in:
parent
7e30c74ea4
commit
f8eebcbb01
2 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]-->
|
||||
<form action="index.php" method="post">
|
||||
<form method="post">
|
||||
<fieldset>
|
||||
<?php if(!empty($_['redirect'])) { echo '<input type="hidden" name="redirect_url" value="'.$_['redirect'].'" />'; } ?>
|
||||
<?php if($_['display_lostpassword']): ?>
|
||||
|
|
|
@ -549,7 +549,8 @@ class OC{
|
|||
else {
|
||||
OC_User::unsetMagicInCookie();
|
||||
}
|
||||
OC_Util::redirectToDefaultPage();
|
||||
header( 'Location: '.$_SERVER['REQUEST_URI'] );
|
||||
exit();
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue