- Timestamp:
- Apr 5, 2009, 1:01:53 PM (16 years ago)
- Location:
- trunk/src
- Files:
-
- 1 deleted
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/grails-app/controllers/AppCoreController.groovy
r98 r99 28 28 def personInstance = Person.get(authenticateService.userDomain().id) 29 29 30 if(params. repeatPass == params.pass) {30 if(params.confirmPass == params.pass) { 31 31 personInstance.pass = params.pass 32 32 personInstance.password = authenticateService.encodePassword(personInstance.pass) … … 42 42 } 43 43 else { 44 flash.message = "Passwords must match." 45 // personInstance.addToErrors("Passwords must match.") 44 personInstance.errors.reject('person.pass.doesNotMatch', // Error code, see grails-app/i18n/message.properties 45 ['pass', 'class Person'].toArray(), // Groovy ListArray cast to Object[] 46 '[NothingUseMessageProperites]') // Default mapping string. 46 47 render(view:'changePassword',model:[personInstance:personInstance]) 47 48 } -
trunk/src/grails-app/i18n/messages.properties
r98 r99 1 1 person.pass.minSize.notmet=Password is less than the minimum size of [{3}] 2 2 person.pass.blank=Password cannot be blank 3 person.pass.doesNotMatch=Passwords must match 3 4 4 5 entry.duration=Duration -
trunk/src/grails-app/views/appCore/changePassword.gsp
r98 r99 38 38 39 39 <tr class="prop"> 40 <td valign="top" class="name"><label for=" repeatPass">Repeatpassword:</label></td>40 <td valign="top" class="name"><label for="confirmPass">Confirm password:</label></td> 41 41 <td valign="top" class="value"> 42 <input type="password" id=" repeatPass" name="repeatPass" />42 <input type="password" id="confirmPass" name="confirmPass" /> 43 43 </td> 44 44 </tr>
Note: See TracChangeset
for help on using the changeset viewer.