formatting, fixing authweb

This commit is contained in:
rootcoma 2013-12-06 12:22:09 -08:00
parent d027fa27b6
commit dceac1f0eb
2 changed files with 4 additions and 3 deletions

View File

@ -27,7 +27,7 @@ if($login->isLoggedIn()) {
<table class="table modal-table">
<thead>
<tr>
<th>Report #</th>
<th>#</th>
<th class="hidden-phone">Username</th>
<th class="hidden-phone">Question #</th>
<th>Question</th>
@ -75,7 +75,7 @@ if($login->isLoggedIn()) {
<table class="table modal-table">
<thead>
<tr>
<th>Edit #</th>
<th>#</th>
<th class="hidden-phone">Username</th>
<th>New Question</th>
<th>Old Question</th>

View File

@ -2748,7 +2748,7 @@ class TriviaTime(callbacks.Plugin):
def insertLogin(self, username, salt, isHashed, password, capability):
usernameCanonical = ircutils.toLower(username)
if self.loginExists(username):
self.updateLogin(username, salt, isHashed, password, capability)
return self.updateLogin(username, salt, isHashed, password, capability)
if not isHashed:
isHashed = 0
else:
@ -3269,6 +3269,7 @@ class TriviaTime(callbacks.Plugin):
c.execute('''update trivialogin set
username=?,
salt=?,
is_hashed=?,
password=?,
capability=?
where username_canonical=?''', (username, salt, isHashed, password, capability, usernameCanonical)