• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Redirect Notice

#1
When a password reactivation e-mail is send to outlook, I am able to click and the password is activated. However, when a gmail user receives the same activation email and clicks on activate, he/she receives the below message.

Redirect Notice

 The previous page is sending you to an invalid url (http:///prep.co.ke/auth/activate/60/82d57554e9e035d766cc6a0ae84a3d391392c730).

 If you do not want to visit that page, you can return to the previous page." 


Interesting, when I copy the url and paste it, it activates the passwords.

Kindly guide on how to resolve this.

Regards

Charles Ndunga
Reply

#2
(09-02-2017, 03:08 AM)cndunga Wrote: When a password reactivation e-mail is send to outlook, I am able to click and the password is activated. However, when a gmail user receives the same activation email and clicks on activate, he/she receives the below message.

Redirect Notice

 The previous page is sending you to an invalid url (http:///prep.co.ke/auth/activate/60/82d57554e9e035d766cc6a0ae84a3d391392c730).

 If you do not want to visit that page, you can return to the previous page." 


Interesting, when I copy the url and paste it, it activates the passwords.

Kindly guide on how to resolve this.

Regards

Charles Ndunga

i am having a deja vu.

http:///prep.co.ke <- should be http://prep.co.ke
Remove the /

edit:

https://forum.codeigniter.com/thread-68663.html <- deja vu
Reply

#3
Have remove the additional / but still not working.
Reply

#4
(09-02-2017, 03:40 AM)cndunga Wrote: Have remove the additional / but still not working.

Can you us show the code?
Reply

#5
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Welcome To prep Onlineystem</title>
<!-- Bootstrap -->
<link href="<?php echo base_url();?>assets/designs/css/bootstrap.css" rel="stylesheet">
<link href="<?php echo base_url();?>assets/designs/css/style.css" rel="stylesheet" type="text/css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
<script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
<style>
.emailr{ width:50%; margin:0 auto; }
.emailer-logo{ text-align: }
</style>
</head>
<body class="emailr">
<!---Hedder--->
<div class="container-fluid fluid-hedder padding">
<div class="col-md-12 col-xs-12 logo emailer-logo"><img src="<?php echo base_url();?>prep.co.ke/assets/designs/images/logo.jpg" align="center" width="65%"></div>
<div class="total-hed">
</div>
</div>
<!---Hedder--->
<!-- Slider-->
<!-- Slider-->
<!-- Middle Content-->
<div class="container-fluid content-bg">
<div class="spacer"></div>
<div class="container emailer-wi">
<h3>Welcome To prep Online System</h3>
<h5> <?php echo sprintf(lang('email_activate_heading'), $identity);?></h5>
<p>Welcome to prep Online . You have successfully completed the registration process. Thank you for registering on prep.</p>
<p><?php echo sprintf(lang('email_activate_subheading'), anchor('prep.co.ke/auth/activate/'. $id .'/'. $activation, lang('email_activate_link')));?></p>
</div>
<div class="spacer"></div>
</div>
</div>
<!-- Middle Content-->
<!-- Footer-->
<div class="panel-footer padding">
<div class="container-fluid copy">
<div class="container padding">
<div class="col-md-5">Copyright © 2017 prep Onlinestem - All rights reserved.</div>
</div>
</div>
</div>
<!-- Footer-->
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="<?php echo base_url();?>assets/designs/js/bootstrap.min.js"></script>
</body>
</html>
Reply

#6
(09-02-2017, 04:12 AM)cndunga Wrote: <!DOCTYPE html>
<html lang="en">
  <head>
     <meta charset="utf-8">
     <meta http-equiv="X-UA-Compatible" content="IE=edge">
     <meta name="viewport" content="width=device-width, initial-scale=1">
     <title>Welcome To prep Onlineystem</title>
     <!-- Bootstrap -->
     <link href="<?php echo base_url();?>assets/designs/css/bootstrap.css" rel="stylesheet">
     <link href="<?php echo base_url();?>assets/designs/css/style.css" rel="stylesheet" type="text/css">
     <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
     <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
     <!--[if lt IE 9]>
     <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
     <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
     <![endif]-->
     <style>
        .emailr{ width:50%; margin:0 auto; }
        .emailer-logo{ text-align:   }
     </style>
  </head>
  <body class="emailr">
     <!---Hedder--->
     <div class="container-fluid fluid-hedder padding">
        <div class="col-md-12 col-xs-12 logo emailer-logo"><img src="<?php echo base_url();?>prep.co.ke/assets/designs/images/logo.jpg" align="center" width="65%"></div>
        <div class="total-hed">
        </div>
     </div>
     <!---Hedder--->
     <!-- Slider-->
     <!-- Slider-->
     <!-- Middle Content-->
     <div class="container-fluid content-bg">
        <div class="spacer"></div>
        <div class="container emailer-wi">
           <h3>Welcome To prep Online System</h3>
           <h5> <?php echo sprintf(lang('email_activate_heading'), $identity);?></h5>
           <p>Welcome to prep Online . You have successfully completed the registration process. Thank you for registering on prep.</p>
           <p><?php echo sprintf(lang('email_activate_subheading'), anchor('prep.co.ke/auth/activate/'. $id .'/'. $activation, lang('email_activate_link')));?></p>
        </div>
        <div class="spacer"></div>
     </div>
     </div>
     <!-- Middle Content-->
     <!-- Footer-->
     <div class="panel-footer padding">
        <div class="container-fluid copy">
           <div class="container padding">
              <div class="col-md-5">Copyright ©  2017 prep Onlinestem - All rights reserved.</div>
           </div>
        </div>
     </div>
     <!-- Footer-->    
     <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
     <!-- Include all compiled plugins (below), or include individual files as needed -->
     <script src="<?php echo base_url();?>assets/designs/js/bootstrap.min.js"></script>
  </body>
</html>

The e-mail code
Reply

#7
If that's your email code you can not use bootstrap in it!

You can only use inline html and images.

Google gmail can be configured, check your gmail settings.
What did you Try? What did you Get? What did you Expect?

Joined the CodeIgniter Community in 2009.          ( Skype: insitfx )
Reply

#8
Yes, what have pasted is the e-mail activation code. Please let me know which other e-mail code you require
Reply

#9
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
*
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created: 03.14.2010
*
* Description: English language file for Ion Auth messages and errors
*
*/

// Account Creation
$lang['account_creation_successful'] = 'Account Successfully Created';
$lang['account_creation_unsuccessful'] = 'Unable to Create Account';
$lang['account_creation_duplicate_email'] = 'Email Already Used or Invalid';
$lang['account_creation_duplicate_username'] = 'Username Already Used or Invalid';

// Password
$lang['password_change_successful'] = 'Password Successfully Changed';
$lang['password_change_unsuccessful'] = 'Unable to Change Password';
$lang['forgot_password_successful'] = 'Password Reset Email Sent';
$lang['forgot_password_unsuccessful'] = 'Unable to Reset Password';

// Activation
$lang['activate_successful'] = 'Account Activated.';
$lang['activate_unsuccessful'] = 'Unable to Activate Account';
$lang['deactivate_successful'] = 'Account De-Activated';
$lang['deactivate_unsuccessful'] = 'Unable to De-Activate Account';
$lang['activation_email_successful'] = 'Activation Email Sent';
$lang['activation_email_unsuccessful'] = 'Unable to Send Activation Email';

// Login / Logout
$lang['login_successful'] = 'Login Successful';
$lang['login_unsuccessful'] = 'Incorrect Login';
$lang['login_unsuccessful_not_active'] = 'Account is inactive';
$lang['login_timeout'] = 'Temporarily Locked Out. Try again later.';
$lang['logout_successful'] = 'You have Logged Out';

// Account Changes
$lang['update_successful'] = 'Account Information Successfully Updated';
$lang['update_unsuccessful'] = 'Unable to Update Account Information';
$lang['delete_successful'] = 'User Deleted';
$lang['delete_unsuccessful'] = 'Unable to Delete User';

// Groups
$lang['group_creation_successful'] = 'Group created Successfully';
$lang['group_already_exists'] = 'Group name already taken';
$lang['group_update_successful'] = 'Group details updated';
$lang['group_delete_successful'] = 'Group deleted';
$lang['group_delete_unsuccessful'] = 'Unable to delete group';
$lang['group_name_required'] = 'Group name is a required field';

// Activation Email
$lang['email_activation_subject'] = 'Account Activation';
$lang['email_activate_heading'] = 'Activate account for %s';
$lang['email_activate_subheading'] = 'Please click this link to %s.';
$lang['email_activate_link'] = 'Activate Your Account';

// Forgot Password Email
$lang['email_forgotten_password_subject'] = 'Forgotten Password Verification';
$lang['email_forgot_password_heading'] = 'Reset Password for %s';
$lang['email_forgot_password_subheading'] = 'Please click this link to %s.';
$lang['email_forgot_password_link'] = 'Reset Your Password';

// New Password Email
$lang['email_new_password_subject'] = 'New Password';
$lang['email_new_password_heading'] = 'New Password for %s';
$lang['email_new_password_subheading'] = 'Your password has been reset to: %s';
Reply

#10
(09-02-2017, 04:57 AM)cndunga Wrote: <?php  if ( ! defined('BASEPATH')) exit('No direct script access allowed');
/**
*
*
* Location: http://github.com/benedmunds/ion_auth/
*
* Created:  03.14.2010
*
* Description:  English language file for Ion Auth messages and errors
*
*/

// Account Creation
$lang['account_creation_successful']   = 'Account Successfully Created';
$lang['account_creation_unsuccessful'] = 'Unable to Create Account';
$lang['account_creation_duplicate_email'] = 'Email Already Used or Invalid';
$lang['account_creation_duplicate_username']     = 'Username Already Used or Invalid';

// Password
$lang['password_change_successful'] = 'Password Successfully Changed';
$lang['password_change_unsuccessful']   = 'Unable to Change Password';
$lang['forgot_password_successful'] = 'Password Reset Email Sent';
$lang['forgot_password_unsuccessful'] = 'Unable to Reset Password';

// Activation
$lang['activate_successful']       = 'Account Activated.';
$lang['activate_unsuccessful']     = 'Unable to Activate Account';
$lang['deactivate_successful']       = 'Account De-Activated';
$lang['deactivate_unsuccessful']       = 'Unable to De-Activate Account';
$lang['activation_email_successful']       = 'Activation Email Sent';
$lang['activation_email_unsuccessful']        = 'Unable to Send Activation Email';

// Login / Logout
$lang['login_successful']           = 'Login Successful';
$lang['login_unsuccessful']       = 'Incorrect Login';
$lang['login_unsuccessful_not_active'] = 'Account is inactive';
$lang['login_timeout']                       = 'Temporarily Locked Out.  Try again later.';
$lang['logout_successful']         = 'You have Logged Out';

// Account Changes
$lang['update_successful']  = 'Account Information Successfully Updated';
$lang['update_unsuccessful']  = 'Unable to Update Account Information';
$lang['delete_successful']               = 'User Deleted';
$lang['delete_unsuccessful']           = 'Unable to Delete User';

// Groups
$lang['group_creation_successful']  = 'Group created Successfully';
$lang['group_already_exists']       = 'Group name already taken';
$lang['group_update_successful']    = 'Group details updated';
$lang['group_delete_successful']    = 'Group deleted';
$lang['group_delete_unsuccessful'] = 'Unable to delete group';
$lang['group_name_required'] = 'Group name is a required field';

// Activation Email
$lang['email_activation_subject']            = 'Account Activation';
$lang['email_activate_heading']    = 'Activate account for %s';
$lang['email_activate_subheading'] = 'Please click this link to %s.';
$lang['email_activate_link']       = 'Activate Your Account';

// Forgot Password Email
$lang['email_forgotten_password_subject']    = 'Forgotten Password Verification';
$lang['email_forgot_password_heading']    = 'Reset Password for %s';
$lang['email_forgot_password_subheading'] = 'Please click this link to %s.';
$lang['email_forgot_password_link']       = 'Reset Your Password';

// New Password Email
$lang['email_new_password_subject']          = 'New Password';
$lang['email_new_password_heading']    = 'New Password for %s';
$lang['email_new_password_subheading'] = 'Your password has been reset to: %s';

Good. You use ion_auth Smile

base_url And the email template?
Reply


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


Users browsing this thread:
1 Guest(s)


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2017 MyBB Group.