mail[Wesnoth-commits] r28676 - /trunk/src/server/server.cpp


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by thomas . baumhauer on August 17, 2008 - 16:14:
Author: baufo
Date: Sun Aug 17 15:50:43 2008
New Revision: 28676

URL: http://svn.gna.org/viewcvs/wesnoth?rev=28676&view=rev
Log:
Bug fix to allow log in after a failed log in attempt

Modified:
    trunk/src/server/server.cpp

Modified: trunk/src/server/server.cpp
URL: 
http://svn.gna.org/viewcvs/wesnoth/trunk/src/server/server.cpp?rev=28676&r1=28675&r2=28676&view=diff
==============================================================================
--- trunk/src/server/server.cpp (original)
+++ trunk/src/server/server.cpp Sun Aug 17 15:50:43 2008
@@ -1034,6 +1034,8 @@
                        }
                        // This name is registered and an incorrect password 
provided
                        else if(!(user_handler_->login(username, password, 
seeds_[sock]))) {
+                               // Reset the random seed
+                               seeds_.erase(sock);
                                send_password_request(sock, ("The password 
you provided for the username '" + username +
                                                "' was incorrect.").c_str(), 
username);
 
@@ -1044,7 +1046,7 @@
                // This name exists and the password was neither empty nor 
incorrect
                registered = true;
                // Reset the random seed
-               seeds_[sock] = "";
+               seeds_.erase(sock);
                user_handler_->user_logged_in(username);
                }
        }




Related Messages


Powered by MHonArc, Updated Sun Aug 17 16:21:11 2008