Hi! Just curious if it is possible to change the l...
# talk-kratos
b
Hi! Just curious if it is possible to change the label of the ID field? I would rather show the name of the id field which is an “Email” input instead of the ambiguous “ID” input on the login page. I understand it’s generic because it can be a username too, but since I have defined the email as the id field, I feel like I should see it here
schema below:
Copy code
{
  "$id": "<https://schemas.ory.sh/presets/kratos/quickstart/email-password/identity.schema.json>",
  "$schema": "<http://json-schema.org/draft-07/schema#>",
  "title": "Person",
  "type": "object",
  "properties": {
    "traits": {
      "type": "object",
      "properties": {
        "email": {
          "type": "string",
          "format": "email",
          "title": "Email",
          "minLength": 3,
          "<http://ory.sh/kratos|ory.sh/kratos>": {
            "credentials": {
              "password": {
                "identifier": true
              },
              "totp": {
                "account_name": true
              },
              "webauthn": {
                "identifier": true
              }
            },
            "verification": {
              "via": "email"
            },
            "recovery": {
              "via": "email"
            }
          }
        }
      },
      "required": [
        "email"
      ],
      "additionalProperties": false
    }
  }
}
Hi - just wanted to check in on this question? Thank you!
m
Hello Jordan, which UI are you using?
b
Hey Vincent - I’m essentially using the Ory Elements rendering code (from the Elements repo) but replaced the HTML components with my own designs. I could programmatically check for the correct field and modify the text but since it’s dynamically generating fields based on what I receive from Kratos I am hesitant to mess with it just for this one field. I feel like I should have better control of the name of the field returned from Ory. Am I missing something? What else can I provide? 🤔
m
https://github.com/ory/kratos/issues/3041 Hello @boundless-insurance-60355 check out this issue and the workaround, maybe it will fix it for you until we improve this 🙂
b
Ah thanks for the temporary workaround - glad to see it’s being worked on too 🙂