<@U04UQ68083H> Can i change password on kratos (se...
# ory-copilot
f
@chilly-king-10285 Can i change password on kratos (selfhosted ui)
c
A message from kapa.ai
Yes, you can change your password on a self-hosted Kratos UI. The quickstart guide for Kratos includes account recovery, which allows you to change your password. Here are the steps: 1. Log out and click on "Recover Account". 2. The next screen will show an HTML form where you enter your email address. 3. Click "submit" and check your emails for the account recovery message. 4. Click the link in the email, and change your password. 5. You are now able to sign in with the new password. For more details, you can refer to the [Account Recovery Documentation](https://www.ory.sh/docs/kratos/self-service/flows/account-recovery-password-reset). Also, you can find all configuration files used for this quickstart guide in [
./contrib/quickstart/kratos
](https://github.com/ory/kratos/tree/master/contrib/quickstart/kratos/email-password), [
./quickstart.yml
](https://github.com/ory/kratos/blob/master/quickstart.yml), and [
./quickstart-standalone.yml
](https://github.com/ory/kratos/blob/master/quickstart-standalone.yml). Source: [Ory Kratos Quickstart Guide](https://www.ory.sh/docs/kratos/quickstart#account-recovery)
f
@chilly-king-10285 Can i change traits and identities on selfhosted ui in kratos?
c
A message from kapa.ai
Yes, you can change traits and identities on a self-hosted Kratos UI. Ory Kratos allows users to update their own settings and profile information using two principal flows: 1. Flows where the user sits in front of the Browser and the application is a server-side application (Node.js, Java, ...) or a client-side application (React.js, Angular, ...). 2. Flows where API interaction is required (Mobile app, Smart TV, ...). Three settings methods are supported: -
password
for updating the password used to sign in. -
oidc
for un-/linking from social sign in providers such as Google or Facebook. -
profile
for updating an identity's traits (for example change the first name). The updated traits must be valid against the Identity Schema defined for its identity traits. You can choose which methods to use in the Ory Identities configuration:
Copy code
yaml selfservice:    methods:    password:    enabled: true    oidc:    enabled: true    profile:    enabled: true    # ...
Traits are the data associated with an identity. This data can be modified by the identity owner, for example at sign up or in the profile update process. Identity traits can also be modified by users with Ory Identities (Kratos) Admin API access. For more information, you can refer to the [Ory Kratos User Settings and Profile Updates Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-settings) and [Identity Metadata & Traits Documentation](https://www.ory.sh/docs/kratos/manage-identities/managing-users-identities-metadata#traits).
f
@chilly-king-10285 When i change your password, what can i do when i enter an existing password and try to verify that the password is valid?
c
A message from kapa.ai
When you change your password, Ory Kratos checks the new password against a database of compromised secrets such as [Have I Been Pwnd](https://haveibeenpwned.com). This is to ensure that users can't use commonly used or compromised passwords. If the new password you enter is found in this database, the system will not allow it to be used. The password must also meet certain complexity requirements as defined in the NIST Digital Identity Guidelines. For example, passwords must have a minimum length of 8 characters and all characters (unicode, ASCII) must be allowed. If the password you enter does not meet these requirements or is found in the compromised secrets database, you will need to choose a new password that does meet the requirements and is not compromised. For more information, you can refer to the [Ory Password Policy Documentation](https://www.ory.sh/docs/concepts/password-policy#password-complexity) and [Leaked Password Check Documentation](https://www.ory.sh/docs/concepts/password-policy#leaked-password-check).
f
@swift-island-66287 I want to see if a particular string is a valid password. What can I do?
@chilly-king-10285 I want to see if a particular string is a valid password. What can I do?
c
A message from kapa.ai
To check if a particular string is a valid password, you would need to ensure that it meets the password policy requirements set by Ory Kratos. Here are the key requirements: 1. The password must have a minimum length of 8 characters and all characters (unicode, ASCII) must be allowed. 2. The password must not be too similar to one of the identifiers (for example, the user's first name or email). 3. The password must not have been previously leaked. Ory Kratos checks this using the [HIBP API](https://haveibeenpwned.com/API/v2). 4. The password must not be a commonly-used, expected, or compromised value. This includes passwords obtained from previous breach corpuses, dictionary words, repetitive or sequential characters, and context-specific words. Please note that some of these checks, such as the leaked password check, are implemented by Ory Kratos and may not be directly accessible for you to use. However, you can use similar services or libraries to perform these checks in your own code. For more information, you can refer to the [Ory Password Policy Documentation](https://www.ory.sh/docs/concepts/password-policy#password-complexity) and [Leaked Password Check Documentation](https://www.ory.sh/docs/concepts/password-policy#leaked-password-check).
f
@chilly-king-10285 I want to make sure that a certain string e.g. "asdf" is the same password that the currently logged in identity has. What can I do?
c
A message from kapa.ai
Ory Kratos does not provide a direct way to verify if a certain string is the same as the currently logged in user's password. This is because it follows best security practices and does not store passwords in plain text. Instead, it stores a hashed version of the password. When a user logs in, the system hashes the entered password and compares it to the stored hash. If the hashes match, the password is correct. This process is handled internally by Ory Kratos and is not exposed via the API for security reasons. If you need to verify a user's password, you should prompt the user to enter their password and then attempt to authenticate them with that password. If the authentication is successful, the password is correct. For more information, you can refer to the [Ory Kratos User Login Documentation](https://www.ory.sh/docs/kratos/self-service/flows/user-login#login-form-validation).
f
@chilly-king-10285 How can i check the string(a
c
A message from kapa.ai
@few-scooter-86891 That's a great question, but unfortunately I am only capable of responding to a maximum of five questions per thread. Don't hesitate to create a new thread for any further questions you have though. I'm here to help!