1
0
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:
Uncled1023 2019-02-04 20:44:29 -08:00
parent b2abba1825
commit f42547174a

View File

@ -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;