MRatWork Forum by Mustafa Ramadhan

Sawo Project - Kloxo-MR Discussions => Kloxo-MR Technical Helps => Topic started by: Richa on 2016-11-13, 10:54:31

Title: [Solved] Problem on auto login button
Post by: Richa on 2016-11-13, 10:54:31
I created a "Login to Kloxo-MR" button on the client area of WHMCS to auto login Kloxo-MR.

The following is my code:
Code: [Select]
<form method="post" action="http://127.0.0.1:7778/lib/php/" target="_blank">
<input type="hidden" name="frm_clientname" value="admin">
<input type="hidden" name="frm_password" value="12345">
<input type="submit" value="Login to Kloxo-MR">
</form>

However when I click it, it returns:
Code: [Select]
*** Token not match. No permit for remote login. Go back to login page ***
I noticed there is a input named 'frm_token'.
Then I viewed the topic: https://forum.mratwork.com/kloxo-mr-technical-helps/login-fail-attemps/msg54368/#msg54368
So I ran the commands on my server:
Code: [Select]
touch /usr/local/lxlabs/kloxo/httpdocs/lib/php/no_need_token
sh /script/restart -y

But still the problem.

What should I do? Thank you.  :)

Title: Re: Problem on auto login button
Post by: MRatWork on 2016-11-13, 11:42:49
It's work in my latest testing.

Is it true for using '127.0.0.1' IP (localhost)?.
Title: Re: Problem on auto login button
Post by: Richa on 2016-11-13, 11:59:35
It's work in my latest testing.

Is it true for using '127.0.0.1' IP (localhost)?.

That is just an example. In fact, I use '{$serverdata.ipaddress}' (syntax of WHMCS) instead '127.0.0.1'.

So how can I disable the token?
Title: Re: Problem on auto login button
Post by: MRatWork on 2016-11-13, 12:16:42
For example, better using 1.2.3.4 instead 127.0.0.1 because 127.0.0.1 is special IP for 'localhost' and Kloxo-MR may trouble with this IP.

As I said before, no issue for disable token with add 'no_need_token' file. So, make sure this file exists.
Title: Re: Problem on auto login button
Post by: Richa on 2016-11-13, 12:33:43
For example, better using 1.2.3.4 instead 127.0.0.1 because 127.0.0.1 is special IP for 'localhost' and Kloxo-MR may trouble with this IP.

As I said before, no issue for disable token with add 'no_need_token' file. So, make sure this file exists.

Where should I add 'no_need_token' file? I have added it to '/usr/local/lxlabs/kloxo/httpdocs/lib/php' and 'sh /script/restart -y', and I'm sure it exists. However it still doesnot work.
Title: Re: Problem on auto login button
Post by: MRatWork on 2016-11-13, 13:28:52
Also add file in /usr/local/lxlabs/kloxo/httpdocs
Title: Re: Problem on auto login button
Post by: Richa on 2016-11-13, 13:39:57
Also add file in /usr/local/lxlabs/kloxo/httpdocs

It works! Thank you very much  ;D