Auto-login user from dedicated event instead of tag

3 views
Skip to first unread message

Alexander Obuhovich

unread,
Dec 26, 2012, 6:03:06 AM12/26/12
to Bugs In-Portal
I propose, that we use "u:OnAutoLoginUser" event to perform automatic user login, when needed and don't do such things in "u:TestCodeIsValid" tag.

Using tag in the middle of template results in sidebar being displayed as for non logged-in user, but main page part displayed as for logged-in user (based on "advanced" theme).


--
Best Regards,

http://www.in-portal.com
http://www.alex-time.com

Phil

unread,
Dec 26, 2012, 7:59:38 AM12/26/12
to in-port...@googlegroups.com
good idea, so the tag would be used for global page behavior, instead of acting on main content portion only. I'm for it :)


Envoyé avec Sparrow

--
You received this message because you are subscribed to the Google Groups "In-Portal Bugs Team" group.
To post to this group, send email to in-port...@googlegroups.com.
To unsubscribe from this group, send email to in-portal-bug...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/in-portal-bugs?hl=en.

Alexander Obuhovich

unread,
Dec 26, 2012, 8:50:35 AM12/26/12
to Bugs In-Portal
Basically tag content will be moved into corresponding event. That's all.

Not sure if we talked about this somewhere, but we actually are missing magic links to a pages, that allows user to auto logged-in, while using them, e.g.


will not only automatically login user based on given token (user, who will be logged-in is pre-generated individually for each user, once needed), but also show /some/page.html, that was requested.


Similar functionality was developer in In-Business task: "#35976 - User Auto-Login on Front-end" for one of Intechnic projects.

Dmitry Andrejev

unread,
Jan 4, 2013, 12:18:53 AM1/4/13
to in-port...@googlegroups.com
Alex,

By the way, what happens if I open link with Token that suppose to Log me in as User A, but I was already logged in as User B to the same website.

I think I just came across this case.

DA

Phil

unread,
Jan 4, 2013, 5:58:49 AM1/4/13
to in-port...@googlegroups.com
then you should be logged as User A, as token is a fast login lane, nothing should stop it :)


Envoyé avec Sparrow

To view this discussion on the web visit https://groups.google.com/d/msg/in-portal-bugs/-/7W6rCw0XQrMJ.

Alexander Obuhovich

unread,
Jan 4, 2013, 5:23:32 PM1/4/13
to Bugs In-Portal
Yes, you will be re-logged-in with user bound to used token. However some residual currently logged-in user session content may stay, like last used order id and such.

Maybe it's better to perform full currently logged-in user (if any) logout procedure (but without redirect) and then attempt to login user associated with given token.

Dmitry Andrejev

unread,
Jan 4, 2013, 5:31:34 PM1/4/13
to in-port...@googlegroups.com
Agreed Alex,

Would you please make a note of this where needed. I think I saw potential problem on Catalyst project on Approve Order screen.


DA

Phil

unread,
Jan 4, 2013, 5:32:25 PM1/4/13
to in-port...@googlegroups.com
knowing all problems that could raise, I'd suggest to completely logout B + login A.


Envoyé avec Sparrow

Reply all
Reply to author
Forward
0 new messages