Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix resending mail requests (#401) #949

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

davidcoutadeur
Copy link

Closes #401

@davidcoutadeur davidcoutadeur self-assigned this Jul 24, 2024
@davidcoutadeur davidcoutadeur added this to the 1.7.0 milestone Jul 24, 2024
# Generate formtoken
ini_set("session.use_cookies",0);
ini_set("session.use_only_cookies",1);
ini_set("session.use_strict_mode",0);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We use ini_set in a lot of places in our code, and here in this page.

Maybe we should move them to index.php?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point!

Maybe at some point we would need to have cookies sent for saving the session at client side. So, I am rather thinking to a dedicated function.

Also I am not quite satisfied by calling ini_set, whereas:

  1. there are some warning in debug mode about misusage of ini_set function
  2. it seems you can set those parameters in the session_start function (but my tests don't work for now)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, using php session mechanism was an easy way to deal with tokens, but we may find a better solution. It will require a token backend on server side, which should be something easy to set up (files, in memory base, ...)

}

#==============================================================================
# Send token by mail
#==============================================================================
if ( !$result ) {


Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was it intentional to add this blank line?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No. I'll remove it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Keep sending reset requests
2 participants