File tree 2 files changed +22
-1
lines changed
site/src/pages/CreateTemplatePage
2 files changed +22
-1
lines changed Original file line number Diff line number Diff line change @@ -197,6 +197,15 @@ CODER_OIDC_SIGN_IN_TEXT="Sign in with Gitea"
197
197
CODER_OIDC_ICON_URL=https://gitea.io/images/gitea.png
198
198
```
199
199
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
+
200
209
## SCIM (enterprise)
201
210
202
211
Coder supports user provisioning and deprovisioning via SCIM 2.0 with header
Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ import {
16
16
} from "pages/CreateTemplatePage/TemplateUpload"
17
17
import { useFormik } from "formik"
18
18
import { SelectedTemplate } from "pages/CreateWorkspacePage/SelectedTemplate"
19
- import { FC } from "react"
19
+ import { FC , useEffect } from "react"
20
20
import { useTranslation } from "react-i18next"
21
21
import {
22
22
nameValidator ,
@@ -224,6 +224,18 @@ export const CreateTemplateForm: FC<CreateTemplateFormProps> = ({
224
224
const { t } = useTranslation ( "createTemplatePage" )
225
225
const { t : commonT } = useTranslation ( "common" )
226
226
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
+
227
239
return (
228
240
< HorizontalForm onSubmit = { form . handleSubmit } >
229
241
{ /* General info */ }
You can’t perform that action at this time.
0 commit comments