Sponsor:

Server and Web Integrator
Link:
Kloxo-MR logo
6.5.0 or 7.0.0
Click for "How to install"
Donation/Sponsorship:
Kloxo-MR is open-source.
Donate and or Sponsorship always welcome.
Click to:
Click Here
Please login or register. 2024-03-29, 00:00:10

Author Topic: [Solved] Problem on auto login button  (Read 3887 times)

0 Members and 1 Guest are viewing this topic.

Offline Richa

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
[Solved] Problem on auto login button
« 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.  :)

« Last Edit: 2016-11-13, 13:40:18 by Richa »

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problem on auto login button
« Reply #1 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)?.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Richa

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Problem on auto login button
« Reply #2 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?

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problem on auto login button
« Reply #3 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.
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Richa

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Problem on auto login button
« Reply #4 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.

Offline MRatWork

  • Administrator
  • The Elite
  • *****
  • Posts: 15,807
  • Karma: +119/-11
  • Gender: Male
    • View Profile
    • MRatWork Forum
Re: Problem on auto login button
« Reply #5 on: 2016-11-13, 13:28:52 »
Also add file in /usr/local/lxlabs/kloxo/httpdocs
..:: MRatWork (Mustafa Ramadhan Projects) ::..
-- Server/Web-integrator - Web Hosting (Kloxo-MR READY!) --

Offline Richa

  • Junior Member
  • *
  • Posts: 14
  • Karma: +0/-0
    • View Profile
Re: Problem on auto login button
« Reply #6 on: 2016-11-13, 13:39:57 »
Also add file in /usr/local/lxlabs/kloxo/httpdocs

It works! Thank you very much  ;D

 


MRatWork Affiliates:    BIGRAF(R) Inc.    House of LMAR    EFARgrafix

Page created in 0.072 seconds with 18 queries.

web stats analysis