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
|
@ -1,5 +1,5 @@
|
||||||
<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]-->
|
<!--[if IE 8]><style>input[type="checkbox"]{padding:0;}</style><![endif]-->
|
||||||
<form action="index.php" method="post">
|
<form method="post">
|
||||||
<fieldset>
|
<fieldset>
|
||||||
<?php if(!empty($_['redirect'])) { echo '<input type="hidden" name="redirect_url" value="'.$_['redirect'].'" />'; } ?>
|
<?php if(!empty($_['redirect'])) { echo '<input type="hidden" name="redirect_url" value="'.$_['redirect'].'" />'; } ?>
|
||||||
<?php if($_['display_lostpassword']): ?>
|
<?php if($_['display_lostpassword']): ?>
|
||||||
|
|
|
@ -549,7 +549,8 @@ class OC{
|
||||||
else {
|
else {
|
||||||
OC_User::unsetMagicInCookie();
|
OC_User::unsetMagicInCookie();
|
||||||
}
|
}
|
||||||
OC_Util::redirectToDefaultPage();
|
header( 'Location: '.$_SERVER['REQUEST_URI'] );
|
||||||
|
exit();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue