mirror of
https://github.com/lus/pasty.git
synced 2023-08-10 21:13:09 +03:00
Implement frontend
This commit is contained in:
@@ -53,5 +53,5 @@ func (paste *Paste) HashDeletionToken() error {
|
||||
// CheckDeletionToken checks whether or not the given deletion token is correct
|
||||
func (paste *Paste) CheckDeletionToken(deletionToken string) bool {
|
||||
match, err := argon2id.ComparePasswordAndHash(deletionToken, paste.DeletionToken)
|
||||
return err != nil && match
|
||||
return err == nil && match
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user