gate-sso / gate

Gate is MFA Enabled SSO Platform that supports SAML, OAuth, Linux shell login and CAS
https://gate-sso.github.io
MIT License
203 stars 52 forks source link

Fix bug autocomplete #94

Closed giosakti closed 6 years ago

giosakti commented 6 years ago

I found this bug when adding admin without waiting autocomplete query to finished.

basically in that scenario gate will save null id. This patch will prevent that from happening by disabling the button until value is not empty