diff options
| author | ivarlovlie <git@ivarlovlie.no> | 2022-08-05 14:38:30 +0200 |
|---|---|---|
| committer | ivarlovlie <git@ivarlovlie.no> | 2022-08-05 14:38:30 +0200 |
| commit | 0f3d17a0e136bb7adefe214b4127aa3b6a230b81 (patch) | |
| tree | 6fdc9dcb6a5d744b26885947c5d70877cca70f08 | |
| parent | fae5653b9d6c6a318e49217eb4d565252013a904 (diff) | |
| download | greatoffice-0f3d17a0e136bb7adefe214b4127aa3b6a230b81.tar.xz greatoffice-0f3d17a0e136bb7adefe214b4127aa3b6a230b81.zip | |
feat: Remove github login from public view
| -rw-r--r-- | apps/portal/src/app/pages/login.svelte | 7 | ||||
| -rw-r--r-- | server/src/Endpoints/Internal/Account/CreateGithubSessionRoute.cs | 1 |
2 files changed, 1 insertions, 7 deletions
diff --git a/apps/portal/src/app/pages/login.svelte b/apps/portal/src/app/pages/login.svelte index 898b26f..1ca6b61 100644 --- a/apps/portal/src/app/pages/login.svelte +++ b/apps/portal/src/app/pages/login.svelte @@ -131,13 +131,6 @@ </div> </div> <div class="flex justify-between"> - <Button text="Login with Github" - variant="secondary" - icon="{IconNames.github}" - icon_right_aligned="true" - href={api_base("_/account/create-github-session")} - loading={loginForm.loading} - /> <Button text="Login" type="submit" variant="primary" diff --git a/server/src/Endpoints/Internal/Account/CreateGithubSessionRoute.cs b/server/src/Endpoints/Internal/Account/CreateGithubSessionRoute.cs index 0cd1aa5..d7dceeb 100644 --- a/server/src/Endpoints/Internal/Account/CreateGithubSessionRoute.cs +++ b/server/src/Endpoints/Internal/Account/CreateGithubSessionRoute.cs @@ -9,6 +9,7 @@ public class CreateGithubSessionRoute : RouteBaseSync.WithRequest<string>.WithAc [AllowAnonymous] [HttpGet("~/_/account/create-github-session")] public override ActionResult Handle(string next) { + return BadRequest("This action is deprecated"); return Challenge(new AuthenticationProperties { RedirectUri = next }, |
