summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2011-07-13 00:01:47 +0200
committerMichael Tänzer <neo@nhng.de>2011-07-13 00:01:47 +0200
commita759a1fae5dfde2c72a3d92cc5164dd1d0abd86a (patch)
tree5def86173884ceb48ad2d089e302e9bdad127ae2
parent5bb9baba4c9a6ded9bcf1dbe984731420c2a36fd (diff)
downloadcacert-devel-a759a1fae5dfde2c72a3d92cc5164dd1d0abd86a.tar.gz
cacert-devel-a759a1fae5dfde2c72a3d92cc5164dd1d0abd86a.tar.xz
cacert-devel-a759a1fae5dfde2c72a3d92cc5164dd1d0abd86a.zip
bug 953: Throw in some new lines (not neccessary but prettier)
bug 953: "After change of password change on account.php?id=14 does not meet requirements wrong redirect" Signed-off-by: Michael Tänzer <neo@nhng.de>
-rw-r--r--includes/account.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/includes/account.php b/includes/account.php
index f805595..591871f 100644
--- a/includes/account.php
+++ b/includes/account.php
@@ -1291,7 +1291,7 @@
if($_SESSION['_config']['user']['pword1'] == "" || $_SESSION['_config']['user']['pword1'] != $_SESSION['_config']['user']['pword2'])
{
echo '<h3 style="color:red">', _("Failure: Password not Changed"),
- '</h3>';
+ '</h3>', "\n";
echo _("New Pass Phrases specified don't match or were blank.");
} else {
$score = checkpw($_SESSION['_config']['user']['pword1'], $_SESSION['profile']['email'], $_SESSION['profile']['fname'],
@@ -1309,20 +1309,20 @@
if(strlen($_SESSION['_config']['user']['pword1']) < 6) {
echo '<h3 style="color:red">',
- _("Failure: Password not Changed"), '</h3>';
+ _("Failure: Password not Changed"), '</h3>', "\n";
echo _("The Pass Phrase you submitted was too short.");
} else if($score < 3) {
echo '<h3 style="color:red">',
- _("Failure: Password not Changed"), '</h3>';
+ _("Failure: Password not Changed"), '</h3>', "\n";
printf(_("The Pass Phrase you submitted failed to contain enough differing characters and/or contained words from your name and/or email address. Only scored %s points out of 6."), $score);
} else if($rc <= 0) {
echo '<h3 style="color:red">',
- _("Failure: Password not Changed"), '</h3>';
+ _("Failure: Password not Changed"), '</h3>', "\n";
echo _("You failed to correctly enter your current Pass Phrase.");
} else {
mysql_query("update `users` set `password`=sha1('".$_SESSION['_config']['user']['pword1']."')
where `id`='".$_SESSION['profile']['id']."'");
- echo '<h3>', _("Password Changed Successfully"), '</h3>';
+ echo '<h3>', _("Password Changed Successfully"), '</h3>', "\n";
echo _("Your Pass Phrase has been updated and your primary email account has been notified of the change.");
$body = sprintf(_("Hi %s,"),$_SESSION['profile']['fname'])."\n";
$body .= _("You are receiving this email because you or someone else")."\n";