Changeset 16538 for main/waeup.kofa/trunk/src/waeup/kofa
- Timestamp:
- 9 Jul 2021, 07:48:39 (3 years ago)
- Location:
- main/waeup.kofa/trunk/src/waeup/kofa
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
r16500 r16538 1561 1561 IUserAccount(applicant).setPassword(password) 1562 1562 # Send email with credentials 1563 login_url = self.url(grok.getSite(), 'login') 1563 args = {'login':applicant.applicant_id, 'password':password} 1564 login_url = self.url(grok.getSite(), 'login?%s' % urlencode(args)) 1564 1565 url_info = u'Login: %s' % login_url 1565 1566 msg = _('You have successfully been registered for the') -
main/waeup.kofa/trunk/src/waeup/kofa/browser/pages.py
r16532 r16538 354 354 return getattr(student, 'suspended_comment', None) 355 355 356 def update(self, SUBMIT=None, camefrom=None ):356 def update(self, SUBMIT=None, camefrom=None, login=None, password=None): 357 357 blocker = grok.getSite()['configuration'].maintmode_enabled_by 358 358 if blocker: … … 361 361 type='warning') 362 362 self.camefrom = camefrom 363 # Prefill form with URL params 364 self.login_default = login 365 self.password_default = password 363 366 if SUBMIT is not None: 364 367 if self.request.principal.id != 'zope.anybody': -
main/waeup.kofa/trunk/src/waeup/kofa/browser/templates/loginpage.pt
r16293 r16538 4 4 <label i18n:translate="" class="col-sm-2 control-label">User Name or Id</label> 5 5 <div class="col-sm-10"> 6 <input name="form.login" t ype="text" class="form-control" id="login">6 <input name="form.login" tal:attributes="value view/login_default" type="text" class="form-control" id="login"> 7 7 </div> 8 8 </div> … … 10 10 <label i18n:translate="" class="col-sm-2 control-label">Password</label> 11 11 <div class="col-sm-10"> 12 <input name="form.password" type="password" class="form-control" id="password">12 <input name="form.password" type="password" tal:attributes="value view/password_default" class="form-control" id="password"> 13 13 <font i18n:translate="" color="red"> Notice: User names, Ids and passwords are case sensitive.</font> 14 14 </div>
Note: See TracChangeset for help on using the changeset viewer.