Commit 877396a8 by Tobin

dc

parent ed32455f
/application/controllers/Webservice.php
/application/models/Webservice_model.php
/application/models/Validation_app_model.php
......@@ -130,7 +130,9 @@ class Api_model extends CI_Model {
$unique_id = uniqid().time();
$this->db->where('email',$data['email_id'])->update('customer',array('reset_key'=>$unique_id));
$subject = "TimeOut: Forgot Password";
$url = 'http://techlabz.in/client/timeout/changepassword/'.$unique_id;
// $baseUrl = "http://localhost:4200/";
$baseUrl = "https://projects.nuvento.com/";
$url = $baseUrl.'forgot/?reset_key='.$unique_id;
$message = "Please use mentioned link for reset your password: ".$url;
$email = $data['email_id'];
$result = $this->send_mail($subject,$email,$message);
......
......@@ -357,7 +357,7 @@ class Validation_model extends CI_Model {
case 'phone':
if(isset($parms[$key])){
$phone = preg_replace('/[^0-9]/', '', $parms[$key]);
if (strlen($phone) !== 10) {
if (strlen($phone) <= 9 && strlen($phone) >= 13) {
$state = 1;
$error_key = $values;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment