accounts: Add SASL PLAIN handler

This commit is contained in:
Daniel Oaks
2016-09-07 20:46:01 +10:00
parent 1679bc9ac2
commit 70665850aa
2 changed files with 83 additions and 2 deletions

View File

@@ -216,7 +216,7 @@ func regCreateHandler(server *Server, client *Client, msg ircmsg.IrcMessage) boo
if err != nil {
return fmt.Errorf("Could not marshal creds: %s", err)
}
tx.Set(keyAccountCredentials, string(credText), nil)
tx.Set(fmt.Sprintf(keyAccountCredentials, account), string(credText), nil)
return nil
})