Add page for connecting apps to your account

This commit is contained in:
2021-12-20 20:31:39 +01:00
parent 5238eee0a2
commit 3cb34d81ad
9 changed files with 250 additions and 11 deletions

View File

@@ -197,6 +197,7 @@ func (wc *WebController) loginForm(td *TemplateData, r *http.Request) (f Form) {
if session, err := td.PixelAPI.PostUserLogin(
f.FieldVal("username"),
f.FieldVal("password"),
"Pixeldrain Website",
); err != nil {
log.Debug("Login failed: %s", err)
formAPIError(err, &f)