[Seaside] Login details

Avi Bryant avi.bryant at gmail.com
Tue Jun 7 22:26:39 CEST 2005


On 6/6/05, Mart-Mari Breedt <breedt_m at aircom.co.za> wrote:

> When one overrides the WAAuthConfiguration class to provide you with
> customizable login verification, does the attributes for login and password
> get set to those entered on the login screen?

Hi Mart-Mari,

I don't think you want to override WAAuthConfiguration to do custom
verification.  Just use a WABasicAuthentication decoration directly. 
So for example, in your root component, do something like this:

initialize
  self addDecoration: (WABasicAuthentication new authenticator: self)

verifyPassword: passwordString forUser: userString
   ("does verification pass...") ifTrue: [user := userString.  ^ true].
  ^ false

Avi


More information about the Seaside mailing list