# turn on debugging:
# python -m smtpd -n -c DebuggingServer localhost:1025
-if DEBUG:
- EMAIL_HOST = 'localhost'
- EMAIL_PORT = 1025
- EMAIL_HOST_USER = ''
- EMAIL_HOST_PASSWORD = ''
- EMAIL_USE_TLS = False
- DEFAULT_FROM_EMAIL = 'testing@example.com'
+#if DEBUG:
+# EMAIL_HOST = 'localhost'
+# EMAIL_PORT = 1025
+# EMAIL_HOST_USER = ''
+# EMAIL_HOST_PASSWORD = ''
+# EMAIL_USE_TLS = False
+# DEFAULT_FROM_EMAIL = 'testing@example.com'
DATABASES = {
'default': {
reg_lname = request.POST.get('lastname', '')
#reg_aff = request.POST.get('affiliation','')
reg_auth = request.POST.get('authority_hrn', '')
- reg_login = request.POST.get('login', '')
+ #reg_login = request.POST.get('login', '')
reg_email = request.POST.get('email','').lower()
#prepare user_hrn
split_email = reg_email.split("@")[0]
last_name = reg_lname,
#affiliation = reg_aff,
authority_hrn = reg_auth,
- login = reg_login,
+ #login = reg_login,
email = reg_email,
password = request.POST['password'],
keypair = keypair,
<label for="auth_list" class="col-xs-2 control-label">Authority</label>
<div class="col-xs-4">
<div class="ui-widget">
- <input id="auth_list">
+ <input id="auth_list" class="form-control">
</div>
</div>
<div class="col-xs-6"><p class="form-hint">An authority responsible for vetting your account</p></div>
TODO: Login should be suggested from user email or first/last name, and
checked for existence. In addition, the full HRN should be shown to the
user.
- -->
<div class="form-group">
<label for="login" class="col-xs-2 control-label">Login</label>
<div class="col-xs-4">
</div>
<div class="col-xs-6"><p class="form-hint">Enter your login</p></div>
</div>
-
+ -->
+
<div class="form-group">
<label for="email" class="col-xs-2 control-label">Email</label>
<div class="col-xs-4">