1
0
mirror of https://github.com/lus/pasty.git synced 2023-08-10 21:13:09 +03:00

restructure startup & config logic

This commit is contained in:
Lukas Schulte Pelkum
2023-06-07 17:46:19 +02:00
parent e93b292daf
commit 3575c02c1e
21 changed files with 175 additions and 1412 deletions

View File

@@ -23,7 +23,7 @@ func (paste *Paste) HashModificationToken() error {
return nil
}
// CheckModificationToken checks whether or not the given modification token is correct
// CheckModificationToken checks whether the given modification token is correct
func (paste *Paste) CheckModificationToken(modificationToken string) bool {
match, err := argon2id.ComparePasswordAndHash(modificationToken, paste.ModificationToken)
return err == nil && match