Forcing Login

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Forcing Login

Eric Landmann
Trying to force a login from an already-existing system, but
can't seem to get the syntax right. Here's what I have;

$s_user -> login(
     -username=('Somebody'),
     -force
     );

What's wrong here?

--Eric


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/
Reply | Threaded
Open this post in threaded view
|

Re: Forcing Login

stevepiercy
 From user.inc:

     define_tag: 'login', -description='Log in user. On
successful login, all fields on the user record will be
available by -> getdata.\n\
...
         if(local_defined('force') && string(#force) -> size &&
#force != false);
             (self -> '_debug_trace') -> insert(tag_name + ': '
+ 'Manually authenticating user id ' + #force);
             #validlogin = true;
             (self -> 'id_user') = #force;

So:
$s_user->login(-force='Somebody');

--steve


On 3/20/11 at 1:51 PM, [hidden email] (Eric
Landmann) pronounced:

>Trying to force a login from an already-existing system, but
>can't seem to get the syntax right. Here's what I have;
>
>$s_user -> login(
>-username=('Somebody'),
>-force
>);
>
>What's wrong here?
>
>--Eric
>
>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
-- --
Steve Piercy               Web Site Builder              
Soquel, CA
<[hidden email]>                  <http://www.StevePiercy.com/>


--
#############################################################
This message is sent to you because you are subscribed to
the mailing list <[hidden email]>.
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
List archive http://lasso.2283332.n4.nabble.com/Knop-Framework-Discussion-f3157831.html
Project homepage http://montania.se/projects/knop/
Google Code has the latest downloads at http://code.google.com/p/knop/