Jump to:

23006 Posts in 11856 Topics by 2828 members

General Questions

SilverStripe Forums » General Questions » Can I do this? (SOLVED)

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 815 Views
  • TerryMiddleton
    Avatar
    Community Member
    108 Posts

    Can I do this? (SOLVED) Link to this post

    Can I create a function that forces a login and redirects to a specific location/page?

    Here's the login call via a URL:

    (site)/Security/LoginForm&action_dologin=1&Email=(email)&Password=(password)

    Can I just call dologin and pass the email & password then do a redirect?

    I'm not sure how to do this?

    Do I create a class first:

    class userautologin {}

    function autologin {

    dologin('email','password');
    redirect;
    }

    Thoughts

    Terry

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Can I do this? (SOLVED) Link to this post

    Found this and see that is is solved... any chance of saying how it was solved please because I am interested in this.

  • swaiba
    Avatar
    Forum Moderator
    1769 Posts

    Re: Can I do this? (SOLVED) Link to this post

    Nevermind I worked it out... I add... &BackURL=REQUIREDURL to the URL

    815 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.