Skip to content
Snippets Groups Projects
Unverified Commit abcfd1af authored by Jaime Pérez Crespo's avatar Jaime Pérez Crespo
Browse files

Make sure the operation to generate a time-limited token is atomic.

With the previous implementation, several methods invoked time() themselves. Under certain conditions (basically, when the clock proceeds to the next second between computing the offset and calculating the token value), this could cause a mismatch that could make tokens expire before they are supposed to. Shouldn't be a big issue unless the system is really, really slow, but better safe than sorry.
parent cc65d6e9
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment