mirror of
https://github.com/whoswhip/Sharpbin.git
synced 2026-12-06 02:48:43 +00:00
fix(backend): use GenerateSecureRandomString for api-keys, paste ids, and refresh tokens
This commit is contained in:
@@ -35,7 +35,7 @@ namespace SharpbinV3.Server.Services
|
||||
var paste = new Paste
|
||||
{
|
||||
UUID = Guid.CreateVersion7(),
|
||||
ID = Utilities.GenerateRandomString(8),
|
||||
ID = Utilities.GenerateSecureRandomString(8),
|
||||
Title = title,
|
||||
AuthorUUID = author?.UUID,
|
||||
User = author,
|
||||
|
||||
Reference in New Issue
Block a user