mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
It might be that people try to register email addresses that they don't own. Then if the actual owner tries to add this email address, she should not get a unique constraint violation. Instead the email will be re-used.
Is this a security issue? Because we re-use the nonce? 🤔
5 lines
103 B
JavaScript
5 lines
103 B
JavaScript
import uuid from 'uuid/v4'
|
|
export default function generateNonce() {
|
|
return uuid().substring(0, 6)
|
|
}
|