Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: user email to lower case (#4021)
boojackcdc2724f2571
diff --git a/frontend/src/views/auth/Signup.vue b/frontend/src/views/auth/Signup.vueindex 416f5ade31..7c9579805a 100644--- a/frontend/src/views/auth/Signup.vue+++ b/frontend/src/views/auth/Signup.vue@@ -313,7 +313,8 @@ export default defineComponent({};const onTextEmail = () => {- const email = state.email.trim();+ const email = state.email.trim().toLowerCase();+ state.email = email;if (!state.nameManuallyEdited) {const emailParts = email.split("@");if (emailParts.length > 0) {diff --git a/server/principal.go b/server/principal.goindex 7baa53766e..1aa982902f 100644--- a/server/principal.go+++ b/server/principal.go@@ -4,6 +4,7 @@ import ("fmt""net/http""strconv"+ "strings""github.com/google/jsonapi""github.com/labstack/echo/v4"@@ -22,6 +23,7 @@ func (s *Server) registerPrincipalRoutes(g *echo.Group) {}principalCreate.CreatorID = c.Get(getPrincipalIDContextKey()).(int)+ principalCreate.Email = strings.ToLower(principalCreate.Email)if principalCreate.Type == api.ServiceAccount {pwd, err := common.RandomString(20)