Welcome Guest, Not a member yet? Register   Sign In
Codeigniter website PHP code theme not working to register & Login
#4

(09-06-2020, 11:10 PM)jreklund Wrote: "Error for the site owner: Invalid domain for site key" <-- Your ReCapcha key don't like your development url. So add it.
Thanks for your reply i have fixed the problem of recaptcha and now its working but everytime i login and try to register these errors keep showing up 
1. When trying to login to an account that already exists in the database:
> Unable to access an error message corresponding to your field name Password.(_check_login)

2. When trying to register a new account (even though that is a new account to be created):
> Your account could not be created at this time. Please try again.
As in the image shows 
Maybe its related to this part of the code in user.php
 
Code:
* PRIVATE VALIDATION CALLBACK FUNCTIONS
     **************************************************************************************/


    /**
     * Verify the login credentials
     *
     * @param  string $password
     * @return boolean
     */
    function _check_login($password)
    {
        // limit number of login attempts
        $ok_to_login = $this->users_model->login_attempts();

        if ($ok_to_login)
        {
            $login = $this->users_model->login($this->input->post('username', TRUE), $password);

            if ($login)
            {
                //your site secret key
                $secret = $this->settings->google_secret;

Working Recaptcha in website thanks for that
[Image: RC8NTFL.png]
Reply


Messages In This Thread
RE: Codeigniter website PHP code theme not working to register & Login - by EagerToLearn - 09-09-2020, 04:08 PM



Theme © iAndrew 2016 - Forum software by © MyBB