Commit 7994e1f1 by tetiana yaremko

update

parent a841e669
......@@ -23,8 +23,8 @@ defined('BASEPATH') OR exit('No direct script access allowed');
| a PHP script and you can easily do that on your own.
|
*/
//$config['base_url'] = 'https://wbt-2-ty-272811.appspot.com/';
$config['base_url'] = 'http://localhost/webapp/ci/';
$config['base_url'] = 'https://wbt-2-ty-272811.appspot.com/';
//$config['base_url'] = 'http://localhost/webapp/ci/';
/*
|--------------------------------------------------------------------------
......
......@@ -75,12 +75,12 @@ $query_builder = TRUE;
$db['default'] = array(
'dsn' => '',
// 'hostname' => '104.199.82.156',
// 'username' => 'tetiana',
// 'password' => 'yaremko_tetiana',
'hostname' => 'localhost',
'username' => 'root',
'password' => '',
'hostname' => '104.199.82.156',
'username' => 'tetiana',
'password' => 'yaremko_tetiana',
// 'hostname' => 'localhost',
// 'username' => 'root',
// 'password' => '',
'database' => 'mydb',
'dbdriver' => 'mysqli',
'dbprefix' => '',
......
......@@ -36,7 +36,7 @@ class Register_model extends CI_Model {
'protocol'=>'smtp',
'smtp_host'=>'ssl://smtp.googlemail.com',
'smtp_user'=>'tetianayaremko@gmail.com',
'smtp_pass'=>'*',
'smtp_pass'=>'55aKenuh',
'smtp_port'=> '465',
'mailtype'=> 'html',
'charset'=> 'iso-8859-1',
......
......@@ -234,29 +234,27 @@
base_url = '<?php echo base_url(); ?>';
$(document).ready(function() {
$('#email').change(function() {
$('#email').change(function () {
var email=$('#email').val();
var email = $('#email').val();
if(email!='')
{
if (email != '') {
$.ajax({
url: base_url+'index.php/auth/email_availability',
method: "POST",
data: {email:email},
success:function(data) {
$.ajax({
url: base_url + 'index.php/auth/email_availability',
method: "POST",
data: {email: email},
success: function (data) {
$('#email_result').html(data);
}
$('#email_result').html(data);
}
})
}
})
}
})
})
$(document).ready(function() {
})
</script>
</body>
......
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 sign in to comment