Skip to content

Commit 8654dd1

Browse files
committed
cleanup
1 parent cc9b573 commit 8654dd1

File tree

4 files changed

+5
-12
lines changed

4 files changed

+5
-12
lines changed

cli/server.go

+5-5
Original file line numberDiff line numberDiff line change
@@ -648,16 +648,16 @@ func newProvisionerDaemon(ctx context.Context, coderAPI *coderd.API,
648648
func printLogo(cmd *cobra.Command, spooky bool) {
649649
if spooky {
650650
_, _ = fmt.Fprintf(cmd.OutOrStdout(), `
651-
▄████▄ ▒█████ ▓█████▄ ▓█████ ██▀███
651+
▄████▄ ▒█████ ▓█████▄ ▓█████ ██▀███
652652
▒██▀ ▀█ ▒██▒ ██▒▒██▀ ██▌▓█ ▀ ▓██ ▒ ██▒
653653
▒▓█ ▄ ▒██░ ██▒░██ █▌▒███ ▓██ ░▄█ ▒
654-
▒▓▓▄ ▄██▒▒██ ██░░▓█▄ ▌▒▓█ ▄ ▒██▀▀█▄
654+
▒▓▓▄ ▄██▒▒██ ██░░▓█▄ ▌▒▓█ ▄ ▒██▀▀█▄
655655
▒ ▓███▀ ░░ ████▓▒░░▒████▓ ░▒████▒░██▓ ▒██▒
656656
░ ░▒ ▒ ░░ ▒░▒░▒░ ▒▒▓ ▒ ░░ ▒░ ░░ ▒▓ ░▒▓░
657657
░ ▒ ░ ▒ ▒░ ░ ▒ ▒ ░ ░ ░ ░▒ ░ ▒░
658-
░ ░ ░ ░ ▒ ░ ░ ░ ░ ░░ ░
659-
░ ░ ░ ░ ░ ░ ░ ░
660-
░ ░
658+
░ ░ ░ ░ ▒ ░ ░ ░ ░ ░░ ░
659+
░ ░ ░ ░ ░ ░ ░ ░
660+
░ ░
661661
662662
`)
663663
return

coderd/users.go

-1
Original file line numberDiff line numberDiff line change
@@ -574,7 +574,6 @@ func (api *API) postLogin(rw http.ResponseWriter, r *http.Request) {
574574

575575
// If the user logged into a suspended account, reject the login request.
576576
if user.Status != database.UserStatusActive {
577-
578577
httpapi.Write(rw, http.StatusUnauthorized, httpapi.Response{
579578
Message: "You are suspended, contact an admin to reactivate your account",
580579
})

scripts/develop.sh

-2
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@ echo '== Without these binaries, workspaces will fail to start!'
1414
# Use static credentials for development
1515
export CODER_DEV_ADMIN_EMAIL=admin@coder.com
1616
export CODER_DEV_ADMIN_PASSWORD=password
17-
export CODER_DEV_MEMBER_EMAIL=member@coder.com
18-
export CODER_DEV_MEMBER_PASSWORD=password
1917

2018
# This is a way to run multiple processes in parallel, and have Ctrl-C work correctly
2119
# to kill both at the same time. For more details, see:

site/src/pages/LoginPage/LoginPage.tsx

-4
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,6 @@ export const LoginPage: React.FC = () => {
3535
const [authState, authSend] = useActor(xServices.authXService)
3636
const isLoading = authState.hasTag("loading")
3737
const redirectTo = retrieveRedirect(location.search)
38-
//{
39-
// "message": "user is not active (status = \"suspended\"), contact an admin to reactivate your account"
40-
// }
41-
4238
const authErrorMessage = isApiError(authState.context.authError) ? authState.context.authError.response.data.message : undefined
4339
const getMethodsError = authState.context.getMethodsError
4440
? (authState.context.getMethodsError as Error).message

0 commit comments

Comments
 (0)