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

remotes/origin/stable45
Robin Appelman 13 years ago
parent 7e30c74ea4
commit f8eebcbb01
  1. 2
      core/templates/login.php
  2. 3
      lib/base.php

@ -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…
Cancel
Save