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,6 +353,7 @@ namespace Teknik.Areas.Paste.Controllers
|
|||||||
paste.IV = iv;
|
paste.IV = iv;
|
||||||
paste.BlockSize = _config.PasteConfig.BlockSize;
|
paste.BlockSize = _config.PasteConfig.BlockSize;
|
||||||
|
|
||||||
|
if (!string.IsNullOrEmpty(password))
|
||||||
paste.HashedPassword = PasteHelper.HashPassword(paste.Key, password);
|
paste.HashedPassword = PasteHelper.HashPassword(paste.Key, password);
|
||||||
paste.FileName = fileName;
|
paste.FileName = fileName;
|
||||||
paste.Title = model.Title;
|
paste.Title = model.Title;
|
||||||
|
Loading…
Reference in New Issue
Block a user