Welcome Guest, Not a member yet? Register   Sign In
Community Auth Learning...
#48

(This post was last modified: 12-01-2015, 06:37 PM by solidcodes.)

I want to match the 'pass_string' a.k.a. password from the form versus the password currently inside the databse.
So far this is what I did.
Code:
public function show_pass_salt()
    {
        $this->load->library('authentication');
        
        $password = 'Retinitis9';
        $random_salt = $this->authentication->random_salt();
        
         $pwd = $this->authentication->hash_passwd($password, $random_salt);
         echo $pwd;
        
    }

Eventhough one of the password in the DB is 'Retinitis9' it did not match one of them.
What's the proper way to match the password from a form versus the current password in the DB.

thanks in advance.
Reply


Messages In This Thread
Community Auth Learning... - by solidcodes - 08-18-2015, 10:30 PM
RE: Community Auth Learning... - by solidcodes - 08-19-2015, 02:04 AM
RE: Community Auth Learning... - by solidcodes - 08-20-2015, 06:24 PM
RE: Community Auth Learning... - by solidcodes - 08-20-2015, 06:32 PM
RE: Community Auth Learning... - by skunkbad - 08-20-2015, 07:41 PM
RE: Community Auth Learning... - by solidcodes - 08-20-2015, 09:10 PM
RE: Community Auth Learning... - by zenepay - 06-11-2016, 03:01 AM
RE: Community Auth Learning... - by bpuig - 05-17-2017, 08:33 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 02:53 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 02:56 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 04:07 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 04:38 AM
RE: Community Auth Learning... - by skunkbad - 08-21-2015, 02:05 PM
RE: Community Auth Learning... - by Narf - 08-21-2015, 02:11 PM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 04:50 AM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 05:04 AM
RE: Community Auth Learning... - by skunkbad - 08-21-2015, 02:07 PM
RE: Community Auth Learning... - by Narf - 08-21-2015, 02:13 PM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 04:38 PM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 07:08 PM
RE: Community Auth Learning... - by skunkbad - 08-21-2015, 09:23 PM
RE: Community Auth Learning... - by solidcodes - 08-21-2015, 10:04 PM
RE: Community Auth Learning... - by solidcodes - 11-14-2015, 07:34 PM
RE: Community Auth Learning... - by skunkbad - 11-15-2015, 12:05 AM
RE: Community Auth Learning... - by solidcodes - 11-15-2015, 03:43 AM
RE: Community Auth Learning... - by solidcodes - 11-15-2015, 08:15 PM
RE: Community Auth Learning... - by skunkbad - 11-16-2015, 01:04 PM
RE: Community Auth Learning... - by solidcodes - 11-17-2015, 07:57 PM
RE: Community Auth Learning... - by skunkbad - 11-18-2015, 10:42 AM
RE: Community Auth Learning... - by solidcodes - 11-18-2015, 06:46 PM
RE: Community Auth Learning... - by skunkbad - 11-18-2015, 07:25 PM
RE: Community Auth Learning... - by solidcodes - 11-18-2015, 07:38 PM
RE: Community Auth Learning... - by solidcodes - 11-23-2015, 03:55 PM
RE: Community Auth Learning... - by solidcodes - 11-23-2015, 11:25 PM
RE: Community Auth Learning... - by solidcodes - 11-24-2015, 12:29 AM
RE: Community Auth Learning... - by skunkbad - 11-24-2015, 01:01 PM
RE: Community Auth Learning... - by solidcodes - 11-24-2015, 06:15 PM
RE: Community Auth Learning... - by solidcodes - 11-28-2015, 04:45 PM
RE: Community Auth Learning... - by skunkbad - 11-29-2015, 02:31 AM
RE: Community Auth Learning... - by solidcodes - 11-29-2015, 02:43 AM
RE: Community Auth Learning... - by skunkbad - 11-29-2015, 09:52 AM
RE: Community Auth Learning... - by solidcodes - 11-30-2015, 05:24 PM
RE: Community Auth Learning... - by solidcodes - 11-30-2015, 05:28 PM
RE: Community Auth Learning... - by skunkbad - 11-30-2015, 06:32 PM
RE: Community Auth Learning... - by solidcodes - 11-30-2015, 07:33 PM
RE: Community Auth Learning... - by skunkbad - 12-01-2015, 01:22 AM
RE: Community Auth Learning... - by solidcodes - 11-30-2015, 07:52 PM
RE: Community Auth Learning... - by solidcodes - 12-01-2015, 03:20 PM
RE: Community Auth Learning... - by solidcodes - 12-01-2015, 03:48 PM
RE: Community Auth Learning... - by solidcodes - 12-01-2015, 06:35 PM
RE: Community Auth Learning... - by skunkbad - 12-01-2015, 11:24 PM
RE: Community Auth Learning... - by solidcodes - 12-02-2015, 04:46 PM
RE: Community Auth Learning... - by solidcodes - 12-05-2015, 04:33 PM
RE: Community Auth Learning... - by skunkbad - 12-05-2015, 08:37 PM
RE: Community Auth Learning... - by solidcodes - 12-08-2015, 05:03 PM
RE: Community Auth Learning... - by skunkbad - 12-08-2015, 08:12 PM
RE: Community Auth Learning... - by solidcodes - 12-09-2015, 06:14 PM
RE: Community Auth Learning... - by skunkbad - 12-09-2015, 09:03 PM
RE: Community Auth Learning... - by solidcodes - 12-10-2015, 02:31 PM
RE: Community Auth Learning... - by skunkbad - 12-10-2015, 04:51 PM
RE: Community Auth Learning... - by solidcodes - 12-10-2015, 05:36 PM
RE: Community Auth Learning... - by InsiteFX - 05-17-2017, 10:16 AM



Theme © iAndrew 2016 - Forum software by © MyBB