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

(11-24-2015, 12:29 AM)solidcodes Wrote: Just an update for the  admin/admin/login
it's working fine now both on invalid password or valid password.

@skunkbad
here you can try this,
username: iridion9
password: Retinitis9

front/public login
http://beautiful-dates.com/ci/login?redirect=

admin login
http://beautiful-dates.com/ci/admin/admin/login

The problem I need to fix is how to send the actual email for username/password recovery.
Is there a settings in the config I should tweak for this?


thanks in advance.

The example controller doesn't add the email functionality, but adding it is pretty easy. You would just change some lines. For instance, in the Examples controller on line 301 you see where the special link is created. Now just put that in an email to the user. Something like this is what I used:


PHP Code:
// Send recovery email
$this->load->library('email');
$this->config->load('email');
$email_configs config_item('email_configs');
$email_config $email_configs['user_recovery'];
$email_config['to'] = $user_data->user_email;
$email_config['special_link'] = secure_anchor
       'examples/recovery_verification/' $user_data->user_id '/' $recovery_code
       secure_site_url'examples/recovery_verification/' $user_data->user_id '/' $recovery_code ), 
       'target ="_blank"' 
);
$this->email->quick_email$email_config ); 

At least in this case you are not going to have Email::quick_email, but you would just send an email using CI the way it shows in the CI user guide.
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