Commit 00bb5a5d authored by Kevin Lyda's avatar Kevin Lyda
Browse files

Use the right key methods

parent cea237ff
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -140,7 +140,7 @@ the first user.`)
		Name:  name,
	})
	ask.CheckErr(err)
	ask.CheckErr(key.Add(login, sshkey))
	ask.CheckErr(key.AddDB(q, login, sshkey))
	userCreated := map[string]bool{
		"SYSTEM": true,
		login:    true,
@@ -263,7 +263,7 @@ func NewUser(args []string) int {
		return 1
	}

	response := key.Fetch(u.Login, args[1], args[2])
	response := key.FetchDB(q, u.Login, args[1], args[2])
	fmt.Println(response)
	if strings.HasPrefix(response, "ERROR") {
		return 1