mirror of https://github.com/tidwall/tile38.git
16 lines
274 B
Go
16 lines
274 B
Go
|
package controller
|
||
|
|
||
|
func (c *Controller) cmdAuth(line string) error {
|
||
|
var password string
|
||
|
if line, password = token(line); password == "" {
|
||
|
return errInvalidNumberOfArguments
|
||
|
}
|
||
|
if line != "" {
|
||
|
return errInvalidNumberOfArguments
|
||
|
}
|
||
|
|
||
|
println(password)
|
||
|
|
||
|
return nil
|
||
|
}
|