allura-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hei...@apache.org
Subject [25/39] allura git commit: [#7868] ticket:776 Add number hash to user audit logs
Date Tue, 02 Jun 2015 20:07:16 GMT
[#7868] ticket:776 Add number hash to user audit logs


Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/fd699a68
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/fd699a68
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/fd699a68

Branch: refs/heads/hs/7825
Commit: fd699a683b7a40b53275a15b33d78518552bae4a
Parents: 1f8d132
Author: Igor Bondarenko <jetmind2@gmail.com>
Authored: Mon May 25 16:34:34 2015 +0000
Committer: Dave Brondsema <dbrondsema@slashdotmedia.com>
Committed: Thu May 28 20:11:46 2015 +0000

----------------------------------------------------------------------
 Allura/allura/lib/plugin.py | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/allura/blob/fd699a68/Allura/allura/lib/plugin.py
----------------------------------------------------------------------
diff --git a/Allura/allura/lib/plugin.py b/Allura/allura/lib/plugin.py
index 40cbcd7..ef9b4b1 100644
--- a/Allura/allura/lib/plugin.py
+++ b/Allura/allura/lib/plugin.py
@@ -738,9 +738,11 @@ class ProjectRegistrationProvider(object):
         res = g.phone_service.check(request_id, pin)
         if res.get('status') == 'ok':
             user.set_tool_data('phone_verification', number_hash=number_hash)
-            h.auditlog_user('Phone verification succeeded', user=user)
+            msg = 'Phone verification succeeded. Hash: {}'.format(number_hash)
+            h.auditlog_user(msg, user=user)
         else:
-            h.auditlog_user('Phone verification failed', user=user)
+            msg = 'Phone verification failed. Hash: {}'.format(number_hash)
+            h.auditlog_user(msg, user=user)
         return res
 
     def register_neighborhood_project(self, neighborhood, users, allow_register=False):


Mime
View raw message