Commit 045b3a7
committed
Use Redis GETDEL when reading a one time password
A get followed by delete left a race where two clients could both retrieve the same secret. GETDEL fetches and removes the key in one step.1 parent 464ca34 commit 045b3a7
1 file changed
Lines changed: 3 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
177 | | - | |
178 | | - | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
179 | 180 | | |
180 | 181 | | |
181 | 182 | | |
| |||
0 commit comments