projects
/
kolarny.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4761f21
)
Fixed login form to use redir() instead of hardcoded header() call.
master
author
Ladislav Láska
<laska@kam.mff.cuni.cz>
Thu, 23 Jun 2011 10:28:12 +0000
(12:28 +0200)
committer
Ladislav Láska
<laska@kam.mff.cuni.cz>
Thu, 23 Jun 2011 10:28:12 +0000
(12:28 +0200)
controllers/login.php
patch
|
blob
|
history
diff --git
a/controllers/login.php
b/controllers/login.php
index 037ddcb086d504f8e5a0c914c45263c0f16e2adf..e11cb2a41876708a030ca2e936d6f026bb4e45de 100644
(file)
--- a/
controllers/login.php
+++ b/
controllers/login.php
@@
-10,7
+10,7
@@
if (isset($_POST['login']) && isset($_POST['password'])) {
} else {
$auth->login($_POST['login'], $_POST['password']);
if ($auth->verify()) {
-
header("Location: /
");
+
redir("index
");
box_succ(tr("Úspěch!"));
$showform = false;
} else {