mirror of
https://git.teknik.io/Teknikode/Teknik.git
synced 2023-08-02 14:16:22 +02:00
Fixed paste edits not working if no password submitted
This commit is contained in:
parent
b2abba1825
commit
f42547174a
@ -353,7 +353,8 @@ namespace Teknik.Areas.Paste.Controllers
|
||||
paste.IV = iv;
|
||||
paste.BlockSize = _config.PasteConfig.BlockSize;
|
||||
|
||||
paste.HashedPassword = PasteHelper.HashPassword(paste.Key, password);
|
||||
if (!string.IsNullOrEmpty(password))
|
||||
paste.HashedPassword = PasteHelper.HashPassword(paste.Key, password);
|
||||
paste.FileName = fileName;
|
||||
paste.Title = model.Title;
|
||||
paste.Syntax = model.Syntax;
|
||||
|
Loading…
Reference in New Issue
Block a user