Welcome Guest, Not a member yet? Register   Sign In
Search Results
    Thread: Security with CI
Post: RE: Security with CI

Don't use MD5 to crypt password :D. Use the php function password_hash and password_verify to check. We never decrypt a password. we only check that the word entered by the user corresponds to the...
19,968 Views
10 Replies
05-11-2018, 10:55 PM
yiujia
    Thread: Ajax foreach on view
Post: RE: Ajax foreach on view

Pour l'ajax, tu peux faire un truc du genre : Code: -- function new_question(){  $.ajax({       type: 'POST',       url: 'http://localhost:8890/app/armee_project/index.php/game/ajax_new...
5,324 Views
4 Replies
05-09-2018, 12:29 PM
yiujia
    Thread: Ajax foreach on view
Post: RE: Ajax foreach on view

Ensuite dans ton contrôleur : PHP Code: -- function test(){   $aViewData = array();   $oQuestion = $this->question_model->get_random_question();   $aViewData['oQuestion'] = '';   if (!empty($oQu...
5,324 Views
4 Replies
05-09-2018, 12:13 PM
yiujia
    Thread: Ajax foreach on view
Post: RE: Ajax foreach on view

xenos92 Wrote: (05-06-2018, 01:40 PM) -- Mon modele : Mes fonctions travaillant sur mon jeu sont en cours de chargement. PHP Code: -- function get_question_id_random() { // I picked a random...
5,324 Views
4 Replies
05-09-2018, 12:03 PM
yiujia
    Thread: [SOLVED] csrf protection issue
Post: RE: [SOLVED] csrf protection issue

I try to use pure Javascript only. ;) Hmm i already see FormData but there is limitations for browser compatibility. I just begin to replace jQuery with pure javascript. Thanks
7,211 Views
8 Replies
05-03-2018, 10:21 AM
yiujia
    Thread: [SOLVED] csrf protection issue
Post: RE: csrf protection issue

Ok after adding some log message to security class, i found the problem. When i tried to send data in the form of JSON.stringify, $_POST is empty. So i build the data like that : "field_name=" + f...
7,211 Views
8 Replies
05-02-2018, 07:34 PM
yiujia
    Thread: [SOLVED] csrf protection issue
Post: RE: csrf protection issue

Yes i verified i sent the good data and get the 403 error. Hmm, i think i will desactivate csrf and simulate it with an hook the csrf token :D
7,211 Views
8 Replies
05-01-2018, 11:22 AM
yiujia
    Thread: [SOLVED] csrf protection issue
Post: RE: csrf protection issue

Like i said, i already apply this solution but i keep having the same problem : error 403.
7,211 Views
8 Replies
05-01-2018, 06:52 AM
yiujia
    Thread: [SOLVED] csrf protection issue
Post: [SOLVED] csrf protection issue

Hello, I'm using Codeigniter 3.1.8 and my site is with https. I looked many solutions with this issue but the solution i found don't work. I try to do ajax post but csrf protection blocks me ...
7,211 Views
8 Replies
04-30-2018, 10:24 PM
yiujia

Theme © iAndrew 2016 - Forum software by © MyBB