reload the current url when login in instead of always redirecting to the default app (oc-1873)

This commit is contained in:
Robin Appelman 2012-09-30 03:47:37 +02:00
parent 7e30c74ea4
commit f8eebcbb01
2 changed files with 3 additions and 2 deletions

View File

@ -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']): ?>

View File

@ -549,7 +549,8 @@ class OC{
else {
OC_User::unsetMagicInCookie();
}
OC_Util::redirectToDefaultPage();
header( 'Location: '.$_SERVER['REQUEST_URI'] );
exit();
}
return true;
}