WAChangePassword


Seaside-Components-Dialogs

Comment:



Hierarchy:

ProtoObject
Object
WAPresenter
WAComponent
WAChangePassword

Summary:

instance variables:

authenticator confirmation password username

methods:

instance class
as yet unclassified no messages

Detail:

instance variables:

authenticator
confirmation
password
username

instance methods:

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

class methods:

^top


- made by Dandelion -