Giter VIP home page Giter VIP logo

Comments (17)

benedmunds avatar benedmunds commented on June 10, 2024

forgotten_password_check uses a token, not the straight code. Can you make sure you're on the latest commit?

from codeigniter-ion-auth.

BobMoir avatar BobMoir commented on June 10, 2024

i am facing the same problem as wscdn. To make sure i am using the latest commit. i have downloaded it again but $user = $this->ion_auth->forgotten_password_check($code) still returns NULL. Kindly help

from codeigniter-ion-auth.

benedmunds avatar benedmunds commented on June 10, 2024

Is a valid code being passed in?

from codeigniter-ion-auth.

BobMoir avatar BobMoir commented on June 10, 2024

It was working in earlier version of Ion Auth but not working in this latest Ion Auth and this is the CODE i have passed:

http://localhost/myproject/auth/reset_password/7308f3219d9621a035dd.3bea8e819f1067823cfc1c44e84b0d0642cc5553a2edc2a35175f94fddf430d5b3b43e07fc99bd8f

also not working on live server:

https://www.xxxxxxx.com/auth/reset_password/7308f3219d9621a035dd.3bea8e819f1067823cfc1c44e84b0d0642cc5553a2edc2a35175f94fddf430d5b3b43e07fc99bd8f

from codeigniter-ion-auth.

BobMoir avatar BobMoir commented on June 10, 2024

Kindly help me

from codeigniter-ion-auth.

benedmunds avatar benedmunds commented on June 10, 2024

Hey, just got back from vacation. Are you able to reproduce this with a fresh download of Ion Auth in a brand new app? Or just in your existing app?

If only the existing app, can you email me a stripped down version of it that I can run locally to reproduce? Then I’ll see what I can figure out.

from codeigniter-ion-auth.

BobMoir avatar BobMoir commented on June 10, 2024

Thanks for replying. Please give me a day or two and i shall make a new small app just with the Login and Forgot Password and share it with you.

from codeigniter-ion-auth.

benedmunds avatar benedmunds commented on June 10, 2024

Sounds good!

from codeigniter-ion-auth.

BobMoir avatar BobMoir commented on June 10, 2024

Too excited after reading your generous reply, I immediately made a small app. Kindly check and solve this problem of mine. Please find the attached zip file. I use identity as Username and not Email. Login is Admin and Password is 123456.

from codeigniter-ion-auth.

BobMoir avatar BobMoir commented on June 10, 2024

Is this ok or shall i email you @ [email protected] ?

from codeigniter-ion-auth.

benedmunds avatar benedmunds commented on June 10, 2024

This works, thanks! I’ll review later today or tomorrow.

from codeigniter-ion-auth.

BobMoir avatar BobMoir commented on June 10, 2024

Thank you. i shall be waiting for it ...

from codeigniter-ion-auth.

benedmunds avatar benedmunds commented on June 10, 2024

Hey @BobMoir , I looked through it and found the issue.

Your hash fields are too small in your database. Right now they're varchar(40) but should be var_char(255), the 40 limitation is causing the hashes to be trucated when inserted into the database.

I would update all of the following fields:

activation_code
forgotten_password_code
remember_code
password

I would double check the other fields as well. Note the latest schema in github for reference:
https://github.com/benedmunds/CodeIgniter-Ion-Auth/blob/3/sql/ion_auth.sql

Take care!

from codeigniter-ion-auth.

BobMoir avatar BobMoir commented on June 10, 2024

THanks a lot. Now, the reset password page is opening but when i tried to change/reset password is says :
The field cannot exceed characters in length.
Kindly check

from codeigniter-ion-auth.

benedmunds avatar benedmunds commented on June 10, 2024

I'm not at a computer atm, troubleshoot that a bit and see. That's not an Ion Auth error message, sounds like a validation error or maybe a DB error...

from codeigniter-ion-auth.

BobMoir avatar BobMoir commented on June 10, 2024

Sorry, i just sent that message before i check out of excitement. Its my fault that i mixed my old codes with the new ones. in the earlier version |max_length[' . $this->config->item('max_password_length', 'ion_auth') . '] was there and in the new version max_password_length is removed and i did not remove it on the form validation. Now its working like a charm. Thank you thanks a lot.

from codeigniter-ion-auth.

benedmunds avatar benedmunds commented on June 10, 2024

Awesome, glad to hear it’s working!

from codeigniter-ion-auth.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.