How do I disable the Yii’s inbuild authentication? ( /site/login ).
I am using an extension to do authentication and dont want to leave the inbuilt login open – potentially this could be a security issue.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think you can just remove the actions in the site controller for login and logout, i.e
actionLogin()andactionLogout()inside the mywebapp/protected/controllers/SiteController.php fileand the view for login, i.e. mywebapp/protected/views/site/login.php,
and also remove the model i.e inside mywebapp/protected/models/LoginForm.php.
Further i would suggest you to either change the UserIdentity.php inside the mywebapp/protected/components folder, or remove it and write your own identity class.
If you want any tips to write your identity class, check the api at this link.