Have you tried using a BoltWire script?
Go to code.script.login and enter:
<:member:> myname
<:password:> mypass
<:login:>
Then on your home page put
[if ! login]<(script login)>[if]
(I suppose on a live site you could do something like [if equal {ip}
...], though not terribly secure. That will automatically log you in,
but require you to refresh the page. I also don't like it constantly
running that conditional every page load. It seemed better to create
a fastlogin action:
[(script login)]
[(forward {p})]
Then put a link somewhere to [[{p}&action=fastlogin|fast login]].
One click and you are instantly in ready to go. There may be other
ways to do this. By the way you could do a fast logout action the
same.
code.script.logout:
<:logout:>
action.fastlogout:
[(script logout)]
[(forward {p})]
That's kind of nifty.
I tried several fancy things using scripts for fast login/logout, but
got a few system crashes. Don't do enough with scripts! This little
change to BOLTFscripts helps alot. Will be in next release. I'd patch
this before using the suggestions above.
global $pageLink, $MarkUpTable, $BOLTabortKey;
if ($BOLTabortKey == true) return;
Cheers,
Dan
On Wed, Sep 16, 2009 at 3:58 PM, Markus <[email protected]> wrote:
>
> Hello,
>
> Is it possible to implement a mechanism to automatically login?
>
> Scenario: I am also using BoltWire offline. When I restart my computer
> or the server I need to login again.
>
> Maybe BoltWire could have an option to generate a password file. When
> the file is present in the field, it is used for (auto) login. If
> there is no password file, the default login mechanism jumps in.
>
> This might be of little use for online installations but offline I
> would highly appreciate it.
>
> Regards, Markus
> >
>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"BoltWire" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/boltwire?hl=en
-~----------~----~----~----~------~----~------~--~---