Skip to content

Commit

Permalink
ip_address will be also updated in update_last_login()
Browse files Browse the repository at this point in the history
  • Loading branch information
Emre Akay committed Jun 27, 2014
1 parent 83be42c commit 270dc68
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions application/libraries/Aauth.php
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ public function update_last_login($user_id = FALSE) {
$user_id = $this->CI->session->userdata('id');

$data['last_login'] = date("Y-m-d H:i:s");
$data['ip_address'] = $this->CI->input->ip_address();

$this->CI->db->where('id', $user_id);
return $this->CI->db->update($this->config_vars['users'], $data);
Expand Down Expand Up @@ -1528,12 +1529,11 @@ public function get_infos($divider = '<br />'){
/**
* Coming with v2
* -------------
* public id sini 0 a eşitleyip öyle kontrol yapabilirdik
* public id sini 0 a eşitleyip öyle kontrol yapabilirdik (oni boşver uşağum)
* permission id yi permission parametre yap
* performance impr. // tablo isimlerini configden çekmesin
* captcha
* performance impr. // tablo isimlerini configden çekmesin (şimdilik çeksin)
* captcha (hmm bi bakalım)
* mail fonksiyonları imtihanı
* config
* stacoverflow
* login e ip aderesi de eklemek lazım
* list_users da grup_par verilirse ve adamın birden fazla grubu varsa nolurkun? // bi denemek lazım belki distinct ile düzelir
Expand All @@ -1555,6 +1555,8 @@ public function get_infos($divider = '<br />'){
* allow changed to allow_group
* deny changed to deny_group
* is member a yeni parametre eklendi
* allow_user() added
* deny_user() added
*
* Done staff v1
* -----------
Expand Down

0 comments on commit 270dc68

Please sign in to comment.