That's what I have thought, I guess javascript is the only choise if
this aproach is used.
Thanks!
On Fri, 2002-08-16 at 17:26, Barney Hamish wrote:
> The only way I thought of to get around this problem was to prefix usernames
> with the other field. In your case login form has three fields, username,
> password and office and you have a javascript that concatenates the office
> number to the username when the user submits the login form...
>
> we have bill from office 1 and bill from office 2:
> Username: Bill
> Password: Foo
> Office: 1
> then we submit
> j_username: 1Bill
> j_password: Foo
>
> and for Bill from office 2:
> Username: Bill
> Password: Foo
> Office: 2
> then we submit
> j_username: 2Bill
> j_password: Foo
>
> Hamish
>
> -----Original Message-----
> From: Alexander Wallace [mailto:tomcater@rwsoft-online.com]
> Sent: Friday, August 16, 2002 12:26 PM
> To: tomcat-user@jakarta.apache.org
> Subject: Realms advise.
>
>
> Not being experienced with realms I want to ask for your advece, will
> this work?
>
> I need to validate not only username and password, but one extra field
> (an integer, OfficeID). This is becouse my webapp can service users from
> different offices, and each office has it's own set of users and data.
> In other words, The app needs to make sure that there is a username X
> with password Y for Office Z.
>
>
> Will realms work here?
>
> I guess before continuing with my questions I'll wait to find out. Since
> they may be particular to the use of realms or other options.
>
> Thanks in advance!
>
>
>
>
>
>
> --
> To unsubscribe, e-mail:
> <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
> <mailto:tomcat-user-help@jakarta.apache.org>
>
> --
> To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
>
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
|