Permalink
Browse files

fix syntax errors; update account password pages to use cfg.abs_root_url

  • Loading branch information...
1 parent 8ca2068 commit e4fc0891a3a5404cc2f87ec6dad769339d54073d straup committed Jun 12, 2012
View
2 www/account_password.php
@@ -29,7 +29,7 @@
$ok = 1;
- if (! passwords_validate_password_for_user($old_password, $GLOBALS['cfg']['user'])){
+ if (! passwords_validate_password_for_user($old_pass, $GLOBALS['cfg']['user'])){
$smarty->assign('error_oldpass_mismatch', 1);
$ok = 0;
}
View
4 www/templates/email_password_reset.txt
@@ -2,6 +2,6 @@
You told us you forgot your password. If you really did, click here to choose a new one:
-{$cfg.safe_abs_root_url}reset/{$code}/
+{$cfg.abs_root_url}reset/{$code}/
-If you didn't mean to reset your password, then you can just ignore this email; your password will not change.
+If you didn't mean to reset your password, then you can just ignore this email; your password will not change.
View
4 www/templates/page_account.txt
@@ -6,9 +6,9 @@
{if $smarty.get.password}<p class="message">Your password has been updated.</p>{/if}
<ul>
- <li><a href="/account/password/">Change your password</a></li>
+ <li><a href="{$cfg.abs_root_url}account/password/">Change your password</a></li>
{if $cfg.enable_feature_account_delete}
- <li><a href="/account/delete/">Delete your account</a></li>
+ <li><a href="{$cfg.abs_root_url}account/delete/">Delete your account</a></li>
{/if}
</ul>
View
2 www/templates/page_account_delete.txt
@@ -5,7 +5,7 @@
<p>Are you sure you want to delete your account?</p>
-<form action="/account/delete/" method="post">
+<form action="{$cfg.abs_root_url}account/delete/" method="post">
<input type="hidden" name="delete" value="1" />
{$crumb_key|crumb_input}
<input type="SUBMIT" value="DELETE MY ACCOUNT" />
View
2 www/templates/page_account_password.txt
@@ -6,7 +6,7 @@
{if $error_newpass_mismatch} <p class="error">Your new passwords need to match.</p>{/if}
{if $error_fail} <p class="error">Unknown failure :(</p>{/if}
-<form action="/account/password/" method="post" accept-encoding="UTF-8">
+<form action="{$cfg.abs_root_url}account/password/" method="post" accept-encoding="UTF-8">
<input type="hidden" name="change" value="1" />
{$crumb_key|crumb_input}
<input type="password" name="old_password" size="40" value="" /><label for="old_password">your current password</label><br />
View
2 www/templates/page_forgot.txt
@@ -7,7 +7,7 @@
{if $error_notsent} <p class="error">Something went wrong :(</p>{/if}
-<form action="/forgot/" method="post" accept-encoding="UTF-8">
+<form action="{$cfg.abs_root_url}forgot/" method="post" accept-encoding="UTF-8">
<input type="hidden" name="remind" value="1" />
<label for="email">Email:</label> <input type="text" name="email" size="40" value="" /><br />
<input type="SUBMIT" value="SEND PASSWORD REMINDER" />
View
2 www/templates/page_reset.txt
@@ -28,7 +28,7 @@ INVISIBLE ERROR CAT HISSES AT YOU!
<p>Please enter your new password</p>
-<form action="/reset/{$reset_code|escape}/" method="post" accept-encoding="UTF-8">
+<form action="{$cfg.abs_root_url}reset/{$reset_code|escape}/" method="post" accept-encoding="UTF-8">
<input type="hidden" name="done" value="1" />
<input type="password" name="new_password1" size="40" value="" /><label for="new_password1">your new password</label><br />
<input type="password" name="new_password2" size="40" value="" /><label for="new_password2">your new password (again)</label><br />
View
2 www/templates/page_signin.txt
@@ -15,7 +15,7 @@
</form>
{if $cfg.enable_feature_password_retrieval}
-<p><a href="/forgot/">Forgotten your password?</a></p>
+<p><a href="{$cfg.abs_root_url}forgot/">Forgotten your password?</a></p>
{/if}
{include file='inc_foot.txt'}

0 comments on commit e4fc089

Please sign in to comment.