1. If you have a site and looking for specific help, please submit a support ticket through Site Owner Dashboard instead of creating a thread in the support forum
    Dismiss Notice

Blocked users/canceled authorisation still log-in

Discussion in 'Kunena Discussion' started by bmwclubdk, Jan 29, 2016.

Thread Status:
Not open for further replies.
  1. bmwclubdk

    bmwclubdk New Member

    Joined:
    Dec 25, 2014
    Messages:
    1
    Likes Received:
    0
    Hi,

    i use Tapatalk 1.3.1 + Kunena 3.0.7 and i had this issue testing Tapatalk app on Windows 8.1. Blocked users or canceled authorization via onUserAuthorisation event still are able to login.

    Here is my plugin code that check if user is blocked or he can access forum http://prntscr.com/9w04is .

    In this case Joomla return instead of false a Joomla Exception and login function in file MbqRdEtUser.php return true. I've changed script to use strict comparison and it works on login http://prntscr.com/9w068e.

    My question is how can i restrict access to forum via Tapatalk app for users that are already logged-in and meanwhile was blocked? They can still browse forum till next login. I tried any event hooks to perform an app->logout but it won't help. I tried to send always header('Mobiquo_is_login: false') but it has no effect. Also i've tried to always send false on hasLogin with no success.

    P.S. Also it would be nice to send customized message instead of "Username and password do not match or you do not have an account yet."
     
Thread Status:
Not open for further replies.