ProtoObjectObjectWAPresenterWAComponentWAChangePassword
| authenticator | confirmation | password | username |
| instance | class |
|---|---|
| as yet unclassified | no messages
|
| authenticator |
|---|
| confirmation |
|---|
| password |
|---|
| username |
|---|
| as yet unclassified |
|---|
| authenticator: anAuthenticator |
authenticator _ anAuthenticator |
| cancel |
self answer: false |
| changePassword |
password = confirmation ifFalse: [^ self inform: 'Sorry, the password and confirmation did not match.']. authenticator setPassword: password forUser: username. self answer: true |
| renderContentOn: html |
html form: [ html table: [ html tableRowWithLabel: 'Username' column: username. html tableRowWithLabel: 'Password' column: [html passwordInputWithCallback: [:v | password _ v]]. html tableRowWithLabel: 'Confirm Password' column: [html passwordInputWithCallback: [:v | confirmation _ v]]. html spacerRow. html attributes alignCenter. html tableRowWith: [ html submitButtonOn: #changePassword of: self. html space. html submitButtonOn: #cancel of: self ] span: 2. ] ] |
| username: aString |
username _ aString |