You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@allura.apache.org by br...@apache.org on 2016/02/05 18:32:16 UTC
[5/5] allura git commit: [#8032] make email addresses primary.
[#8032] make email addresses primary.
Project: http://git-wip-us.apache.org/repos/asf/allura/repo
Commit: http://git-wip-us.apache.org/repos/asf/allura/commit/d4a1819a
Tree: http://git-wip-us.apache.org/repos/asf/allura/tree/d4a1819a
Diff: http://git-wip-us.apache.org/repos/asf/allura/diff/d4a1819a
Branch: refs/heads/master
Commit: d4a1819a2734396f39e29920037bd3969f5cbd25
Parents: 9caa879
Author: dastanforever <pr...@gmail.com>
Authored: Mon Jan 11 11:07:23 2016 +0530
Committer: Dave Brondsema <da...@brondsema.net>
Committed: Fri Feb 5 12:22:44 2016 -0500
----------------------------------------------------------------------
Allura/allura/websetup/bootstrap.py | 1 +
1 file changed, 1 insertion(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/allura/blob/d4a1819a/Allura/allura/websetup/bootstrap.py
----------------------------------------------------------------------
diff --git a/Allura/allura/websetup/bootstrap.py b/Allura/allura/websetup/bootstrap.py
index 111b4e3..f9cc65d 100644
--- a/Allura/allura/websetup/bootstrap.py
+++ b/Allura/allura/websetup/bootstrap.py
@@ -344,6 +344,7 @@ def create_user(display_name, username=None, password='foo', make_project=False)
kw = {"email": email}
em = EmailAddress.get(**kw)
em.confirmed = True
+ user.set_pref('email_address',email)
user.set_password(password)
return user