Bug 5.75: hook _global login_ok can not use absolute URL

Please report bugs and any annoyances here. Kindly include all possible details: steps to reproduce, expected result, actual result, screenshots, ... etc.
Post Reply
User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Bug 5.75: hook _global login_ok can not use absolute URL

Post by onoehring » 2019-06-13 08:10

Hi,

for tests I tried

Code: Select all

function login_ok($memberInfo, &$args){
return 'https://google.com';
}
All users should be redirected to google ... but - opposite to the explanation in the comments of that function an error occurs:
The requested URL /https://google.com was not found on this server.
Olaf

pbottcher
AppGini Super Hero
AppGini Super Hero
Posts: 1635
Joined: 2018-04-01 10:12

Re: Bug 5.75: hook _global login_ok can not use absolute URL

Post by pbottcher » 2019-06-13 08:35

Hi,

the $args feature seems not to be implemented in the login_ok check.

If you need this feature you can call

redirect('https://www.google.com',true);

directly instead of passing the url in the return
Any help offered comes with the best of intentions. Use it at your own risk. In any case, please make a backup of your existing environment before applying any changes.

User avatar
onoehring
AppGini Super Hero
AppGini Super Hero
Posts: 1156
Joined: 2019-05-21 22:42
Location: Germany
Contact:

Re: Bug 5.75: hook _global login_ok can not use absolute URL

Post by onoehring » 2019-06-13 09:30

Hi,

I think the error was actualls
/https:/google.com
after the https: was only a single / if I rememeber correct. So strange things going on here.
Rhetorical question: Why not simply redirect to whatever is received?

Olaf

Post Reply