Greetings! Rambo's answers:
On Tue, 2002-07-02 at 19:00, pp wrote: > Why I always get "Login Failure"? > I have user and pass in form fields > and call: > $result = auth_login($user,$pass); > hmm, one problem could be that sitegroup and login type (+* et all) are not correctly automagically determined. NOTE: to log in to SG0 you need to specify the sitegroup and logintype parameters to the auth_login() ie. auth_login($user, $pass, "", ""); to specify login type and/or sitegroup manually (not left for automagic) auth_login($user, $pass, "name_of_the_sitegroup", "+") > ah... more: > mt_rand(): Invalid range: 16777216..-1 in ROOT(2) : eval()'d code(3) : eval()'d code on line 16 > rand(): Invalid range: 1..0 in ROOT(233) : eval()'d code on line 4 > This seems to depend on the PHP version or then it's related to some other system specific variable, the big numbers for the ranges for mt_rand are generated by raising 2 to some power You'll find the mt_rand calls from snippet /Nemein_Authentication/Classes line 16. Change this to: $this->seed=mt_rand(pow(2,12), pow(2,24))."".mt_rand(pow(2,12), pow(2,24)); > I need one host be all authenticated or not , and wonder if just making header for 401 should be enough? > I wold think most browsers would give the HTTP basic auth form when encountering 401/Forbidden header. anyways this is not meant to be used with basic auth but with forms based authentication. /Rambo -- Henri Bergius [EMAIL PROTECTED] Consultant Partner Tel: +358-20-198 6032 Nemein Oy http://www.nemein.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
