Skip to content

Commit 4729d7d

Browse files
committed
Merge branch 'main' into 7452-banner-legacy-params
2 parents 3eafd70 + fe0e94e commit 4729d7d

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

docs/admin/auth.md

+9
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,15 @@ CODER_OIDC_SIGN_IN_TEXT="Sign in with Gitea"
197197
CODER_OIDC_ICON_URL=https://gitea.io/images/gitea.png
198198
```
199199

200+
## Disable Built-in Authentication
201+
202+
To remove email and password login, set the following environment variable on your
203+
Coder deployment:
204+
205+
```console
206+
CODER_DISABLE_PASSWORD_AUTH=true
207+
```
208+
200209
## SCIM (enterprise)
201210

202211
Coder supports user provisioning and deprovisioning via SCIM 2.0 with header

site/src/pages/CreateTemplatePage/CreateTemplateForm.tsx

+13-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ import {
1616
} from "pages/CreateTemplatePage/TemplateUpload"
1717
import { useFormik } from "formik"
1818
import { SelectedTemplate } from "pages/CreateWorkspacePage/SelectedTemplate"
19-
import { FC } from "react"
19+
import { FC, useEffect } from "react"
2020
import { useTranslation } from "react-i18next"
2121
import {
2222
nameValidator,
@@ -224,6 +224,18 @@ export const CreateTemplateForm: FC<CreateTemplateFormProps> = ({
224224
const { t } = useTranslation("createTemplatePage")
225225
const { t: commonT } = useTranslation("common")
226226

227+
useEffect(() => {
228+
if (error) {
229+
window.scrollTo(0, 0)
230+
}
231+
}, [error])
232+
233+
useEffect(() => {
234+
if (jobError) {
235+
window.scrollTo(0, document.body.scrollHeight)
236+
}
237+
}, [logs, jobError])
238+
227239
return (
228240
<HorizontalForm onSubmit={form.handleSubmit}>
229241
{/* General info */}

0 commit comments

Comments
 (0)