improvement (login): new backend API to generate login form in the frontend

This commit is contained in:
Mickael KERJEAN
2019-01-04 18:14:43 +11:00
parent c213772502
commit a50dbd4724
36 changed files with 453 additions and 767 deletions

View File

@ -78,9 +78,7 @@ func AdminBackend(ctx App, res http.ResponseWriter, req *http.Request) {
drivers := Backend.Drivers()
for key := range drivers {
if obj, ok := drivers[key].(interface{ LoginForm() Form }); ok {
backends[key] = obj.LoginForm()
}
backends[key] = drivers[key].LoginForm()
}
SendSuccessResult(res, backends)
}