Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

login page shows "Sign up" option when registration is disabled #303

Open
5 tasks done
leodotcloud opened this issue Oct 17, 2023 · 0 comments
Open
5 tasks done

login page shows "Sign up" option when registration is disabled #303

leodotcloud opened this issue Oct 17, 2023 · 0 comments
Labels
bug Something is not working.

Comments

@leodotcloud
Copy link

Preflight checklist

Ory Network Project

No response

Describe the bug

As a user after disabling registration in kratos configuration, I expect the login page of this project to not show up:

"Don't have an account? Sign up"

Clicking the Sign Up shows the error correctly:

{
  "id": "3a1d7dc5-072d-4570-b61f-ca4e82ffb4b6",
  "error": {
    "id": "self_service_flow_disabled",
    "code": 400,
    "status": "Bad Request",
    "reason": "Registration is not allowed because it was disabled.",
    "message": "registration flow disabled"
  },
  "created_at": "2023-10-17T19:03:27.068505Z",
  "updated_at": "2023-10-17T19:03:27.068505Z"
}

Reproducing the bug

Disable registration in kratos config:

    registration:
      enabled: false

Run quickstart.yml quickstart-standalone.yml. Navigating to http://127.0.0.1:4455/login, reproduces the problem.

Relevant log output

No response

Relevant configuration

No response

Version

1.0.0

On which operating system are you observing this issue?

None

In which environment are you deploying?

None

Additional Context

No response

@leodotcloud leodotcloud added the bug Something is not working. label Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is not working.
Projects
None yet
Development

No branches or pull requests

1 participant