mirror of
https://github.com/ergochat/ergo.git
synced 2025-12-20 02:00:11 -08:00
move password handling into a single file
This commit is contained in:
parent
b421971b61
commit
9aa7debbfe
4 changed files with 45 additions and 20 deletions
|
|
@ -1,7 +1,6 @@
|
|||
package irc
|
||||
|
||||
import (
|
||||
"code.google.com/p/go.crypto/bcrypt"
|
||||
"code.google.com/p/go.text/unicode/norm"
|
||||
"errors"
|
||||
"fmt"
|
||||
|
|
@ -214,7 +213,7 @@ func (cmd *PassCommand) CheckPassword() {
|
|||
if cmd.hash == nil {
|
||||
return
|
||||
}
|
||||
cmd.err = bcrypt.CompareHashAndPassword(cmd.hash, cmd.password)
|
||||
cmd.err = ComparePassword(cmd.hash, cmd.password)
|
||||
}
|
||||
|
||||
func NewPassCommand(args []string) (editableCommand, error) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue