[Rt-commit] rt branch, 4.0/reset-auth-token-fix, created. rt-4.0.1rc1-18-gff09564

? sunnavy sunnavy at bestpractical.com
Fri Jun 10 03:00:21 EDT 2011


The branch, 4.0/reset-auth-token-fix has been created
        at  ff09564fc054be472cfb900bb0d0d52b65fb7eeb (commit)

- Log -----------------------------------------------------------------
commit ff09564fc054be472cfb900bb0d0d52b65fb7eeb
Author: sunnavy <sunnavy at bestpractical.com>
Date:   Fri Jun 10 14:24:54 2011 +0800

    don't update other fields if user clicks ResetAuthToken

diff --git a/share/html/User/Prefs.html b/share/html/User/Prefs.html
index 0ace58a..fc6e289 100755
--- a/share/html/User/Prefs.html
+++ b/share/html/User/Prefs.html
@@ -209,6 +209,11 @@ $id = $UserObj->id;
 
 my @results;
 
+if ( $ARGS{'ResetAuthToken'} ) {
+    my ($status, $msg) = $UserObj->GenerateAuthToken;
+    push @results, $msg;
+}
+else {
 my @fields = qw(
     Name Comments Signature EmailAddress FreeformContactInfo 
     Organization RealName NickName Lang EmailEncoding WebEncoding 
@@ -253,10 +258,6 @@ if (defined $Pass1 && length $Pass1 ) {
     );
     push @results, loc("Password: [_1]", $msg);
 }
-
-if ( $ARGS{'ResetAuthToken'} ) {
-    my ($status, $msg) = $UserObj->GenerateAuthToken;
-    push @results, $msg;
 }
 
 </%INIT>

-----------------------------------------------------------------------


More information about the Rt-commit mailing list