Index: main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py	(revision 8037)
+++ main/waeup.kofa/trunk/src/waeup/kofa/applicants/applicant.py	(revision 8039)
@@ -163,4 +163,5 @@
     applicant_id = index.Field(attribute='applicant_id')
     reg_number = index.Field(attribute='reg_number')
+    email = index.Field(attribute='email')
 
 class ApplicantFactory(grok.GlobalUtility):
Index: main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py	(revision 8037)
+++ main/waeup.kofa/trunk/src/waeup/kofa/applicants/browser.py	(revision 8039)
@@ -745,9 +745,10 @@
     form_fields = grok.AutoFields(IApplicantEdit).omit(
         'locked', 'course_admitted', 'student_id',
-        'screening_score', 'reg_number'
+        'screening_score',
         )
     form_fields['date_of_birth'].custom_widget = FriendlyDateWidget('le-year')
     form_fields['phone'].custom_widget = PhoneWidget
     form_fields['applicant_id'].for_display = True
+    form_fields['reg_number'].for_display = True
     grok.template('applicanteditpage')
     manage_applications = False
@@ -917,5 +918,5 @@
                 if applicant.password is not None:
                     self.flash(_('Your password has already been set. '
-                                  'You can proceed to the login page.'))
+                                  'Please proceed to the login page.'))
                     return
                 elif getattr(applicant,'firstname',None) is None:
Index: main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py
===================================================================
--- main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py	(revision 8037)
+++ main/waeup.kofa/trunk/src/waeup/kofa/applicants/tests/test_browser.py	(revision 8039)
@@ -21,7 +21,9 @@
 import shutil
 import tempfile
+import grok
 from StringIO import StringIO
 from datetime import datetime, date, timedelta
 from mechanize import LinkNotFoundError
+from zope.event import notify
 from zope.component import createObject, getUtility
 from zope.component.hooks import setSite, clearSite
@@ -866,2 +868,19 @@
             self.container_path + '/registration_complete?email=xx%40yy.zz')
         return
+
+    def test_change_password_request(self):
+        self.browser.open('http://localhost/app/sendpw')
+        self.browser.getControl(name="form.reg_number").value = '1234'
+        self.browser.getControl(name="form.email").value = 'aa@aa.ng'
+        self.browser.getControl("Get new login credentials").click()
+        self.assertTrue('No record found' in self.browser.contents)
+        self.applicant.email = 'aa@aa.ng'
+        # Update the catalog
+        notify(grok.ObjectModifiedEvent(self.applicant))
+        self.browser.open('http://localhost/app/sendpw')
+        self.browser.getControl(name="form.reg_number").value = '1234'
+        self.browser.getControl(name="form.email").value = 'aa@aa.ng'
+        self.browser.getControl("Get new login credentials").click()
+        self.assertTrue(
+            'An email with your user name and password has been sent'
+            in self.browser.contents)
