search

Home  >  Q&A  >  body text

How to prevent users from repeatedly logging in and other error reports?

1.jpg

FrankFrank2479 days ago1339

reply all(3)I'll reply

  • Frank

    Frank2018-04-25 18:47:31

    Solution:

    1.jpg

    reply
    1
  • 天蓬老师

    天蓬老师2018-04-25 13:40:46

    Constant is not defined, please check the initialization part of the public controller

    reply
    0
  • Frank

    Defined protected function _initialize() { parent::_initialize(); //In the initial method of the public controller, create a constant to determine whether the user is logged in or has logged in define('USER_ID', Session::get('user_id')); }

    Frank · 2018-04-25 14:14:45
  • Cancelreply