passwd.html (html::passwd)

Form data requirements:

  • userid should contain the userid (from $passwd.userid$)
  • passwd should contain the new password
  • repass should also contain the new password (for ruling out typos)
  • token should contain the password change token from $passwd.token$ (usually a hidden field)

For display to the user:

  • $passwd.userid$ (string) contains the userid
  • $passwd.username$ (string) contains the user display name
  • $passwd.errmsg$ (string) contains an error message (may be undefined)

If the user is not logged in, the following are also provided:

  • $passwd.token$ (string) the password change token
  • $passwd.expiration_time$ (string) the date-time when the opportunity expires
  • $passwd.expires_in.hours$ (string) number of full hours until the opportunity expires, as of when the page was (re)loaded
  • $passwd.expires_in.minutes$ (string) number of full minutes (modulo 60) until the opportunity expires, as of when the page was (re)loaded
  • $passwd.expires_in.seconds$ (string) number of full seconds (modulo 60) until the opportunity expires, as of when the page was (re)loaded

For use in the form:

  • $passwd.action$ (string) the required action attribute value
  • $passwd.method$ (string) the required method attribute value
  • $passwd.enctype$ (string) the required enctype attribute value
  • $passwd.accept_charlist$ (string) the required accept-charlist attribute value