From dceac1f0ebe38bf4947e3d5669f15c4e263d161b Mon Sep 17 00:00:00 2001 From: rootcoma Date: Fri, 6 Dec 2013 12:22:09 -0800 Subject: [PATCH] formatting, fixing authweb --- php/views/reports.html.php | 4 ++-- plugin.py | 3 ++- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/php/views/reports.html.php b/php/views/reports.html.php index aead772..cf5945a 100644 --- a/php/views/reports.html.php +++ b/php/views/reports.html.php @@ -27,7 +27,7 @@ if($login->isLoggedIn()) { - + @@ -75,7 +75,7 @@ if($login->isLoggedIn()) { - + diff --git a/plugin.py b/plugin.py index bd84f97..5872014 100644 --- a/plugin.py +++ b/plugin.py @@ -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)