mirror of
https://github.com/zitadel/zitadel.git
synced 2025-11-14 15:03:12 +00:00
feat(login): additionally use email/phone for authentication (#4563)
* feat: add ability to disable login by email and phone * feat: check login by email and phone * fix: set verified email / phone correctly on notify users * update projection version * fix merge * fix email/phone verified reduce tests * fix user tests * loginname check * cleanup * fix: update user projection version to handle fixed statement
This commit is contained in:
@@ -1352,6 +1352,32 @@ func Test_columnsToQuery(t *testing.T) {
|
||||
values: []interface{}{1, 3.14},
|
||||
},
|
||||
},
|
||||
{
|
||||
name: "with copy column",
|
||||
args: args{
|
||||
cols: []handler.Column{
|
||||
{
|
||||
Name: "col1",
|
||||
Value: 1,
|
||||
},
|
||||
{
|
||||
Name: "col2",
|
||||
Value: handler.Column{
|
||||
Name: "col1",
|
||||
},
|
||||
},
|
||||
{
|
||||
Name: "col3",
|
||||
Value: "something",
|
||||
},
|
||||
},
|
||||
},
|
||||
want: want{
|
||||
names: []string{"col1", "col2", "col3"},
|
||||
params: []string{"$1", "col1", "$2"},
|
||||
values: []interface{}{1, "something"},
|
||||
},
|
||||
},
|
||||
}
|
||||
for _, tt := range tests {
|
||||
t.Run(tt.name, func(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user