Jump to content

Last Login to via API?


Recommended Posts

Hi All,

 

Is there a way to get the Last login details for a client to update when logging in via the API?

 

I've currently implemented it forward facing so the customer can see any unusual activity on their account but if it isn't updating as it's supposed too, it becomes redundant.

 

If anyone has had any success with this, please let me know.

 

Thanks.

Link to comment
Share on other sites

  • 1 month later...

Hi All,

 

Just thinking about this further.

 

We can use a php script such as "$_SERVER['REMOTE_ADDR']" and pass that to the login variable to enable it to update the IP address of the client.

I believe WHMCS uses something similar as it is able to determine where the connection is coming from when it is on the direct WHMCS portal.

 

I think it would make it look a bit more professional to be able to show when the last login was and where it came from.

 

Any help with this is appreciated.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated