bridgev2/login: add url and domain user input types
Some checks are pending
Go / Lint (latest) (push) Waiting to run
Go / Build (old, libolm) (push) Waiting to run
Go / Build (latest, libolm) (push) Waiting to run
Go / Build (old, goolm) (push) Waiting to run
Go / Build (latest, goolm) (push) Waiting to run

This commit is contained in:
Tulir Asokan 2024-11-26 14:50:02 +02:00
commit 0384e800fd
2 changed files with 3 additions and 1 deletions

View file

@ -159,6 +159,8 @@ const (
LoginInputFieldTypeEmail LoginInputFieldType = "email"
LoginInputFieldType2FACode LoginInputFieldType = "2fa_code"
LoginInputFieldTypeToken LoginInputFieldType = "token"
LoginInputFieldTypeURL LoginInputFieldType = "url"
LoginInputFieldTypeDomain LoginInputFieldType = "domain"
)
type LoginInputDataField struct {

View file

@ -635,7 +635,7 @@ components:
type:
type: string
description: The type of field.
enum: [ username, phone_number, email, password, 2fa_code, token ]
enum: [ username, phone_number, email, password, 2fa_code, token, url, domain ]
id:
type: string
description: The internal ID of the field. This must be used as the key in the object when submitting the data back to the bridge.