You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by "Arthur M. Kang" <ar...@levelogic.com> on 2001/07/19 04:53:42 UTC

Overwriting the Basic Password

Is there a reverse to the    ($res,$password)=$r->get_basic_auth_pw    function?  Is there anyone to globally set or reset the values that come out of $r->get_basic_auth_pw?  Can I set a new password to come out?  You can do it with the user ($c->user)...

Arthur

Re: Overwriting the Basic Password

Posted by Doug MacEachern <do...@covalent.net>.
On Wed, 18 Jul 2001, Arthur M. Kang wrote:

> Is there a reverse to the    ($res,$password)=$r->get_basic_auth_pw
> function?  Is there anyone to globally set or reset the values that come
> out of $r->get_basic_auth_pw?  Can I set a new password to come
> out?  You can do it with the user ($c->user)...    > 

$r->header_in(Authorization => 'Basic ' . 
              MIME::Base64::encode(join ':', $username, $password));