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
-
I created a "Login to Kloxo-MR" button on the client area of WHMCS to auto login Kloxo-MR.
The following is my code:
<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:
*** 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:
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. :)
-
It's work in my latest testing.
Is it true for using '127.0.0.1' IP (localhost)?.
-
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?
-
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.
-
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.
-
Also add file in /usr/local/lxlabs/kloxo/httpdocs
-
Also add file in /usr/local/lxlabs/kloxo/httpdocs
It works! Thank you very much ;D