go-aah / aah

A secure, flexible, rapid Go web framework
https://aahframework.org
MIT License
690 stars 33 forks source link

Simplify and make semantic way for form auth login submit config and usage #184

Closed jeevatkm closed 6 years ago

jeevatkm commented 6 years ago

The goal is to simplify and make it semantic way for form auth login submit config and usage.

Currently to make login submit flow to work, aah user have to manually have define/configure virtual route definition in routes.conf after configuring form auth scheme in security.conf

login_submit {
  path = "/login"
  method = "POST"
  controller = "VirtualFormController"
}

So v0.11.0 onwards -

<form class="form-signin" method="post" action="{{ rurl . "form_auth_login_submit__aah" }}">
jeevatkm commented 6 years ago

Documentation update is done 😄