One admin account, an authenticator app, and secrets behind your code.
One admin
Laravelify has a single admin account. The first visit to the panel goes to /setup, which needs the token from the installer’s setup link; after that account exists, there is no registration page.Logging in is rate limited: five wrong answers (password or authenticator code) for one account from one IP, or twenty from one IP, pause logins for five minutes. The password and the code are both checked before a session starts.
Two-factor is required
Right after creating the account you set up an authenticator app (Google Authenticator, 1Password, Authy, Bitwarden) and enter the 6-digit code. Until then every page is locked. Later sign-ins at /login ask for email, password, and the current code.The setup page has two choices:
New key: scan the QR code, or copy the key into your app. Make a different key gives you another one.
Use my own key: paste a key you already use in another app or password manager, so one entry in your app gives codes for both. A plain key (JBSW Y3DP …, spaces do not matter) or an otpauth:// link both work. It must be at least 16 characters of A–Z and 2–7.
Keep the setup key from the QR screen somewhere safe. If you lose the authenticator, you need shell access to the server to reset it.
Your account: Security
Open the menu under your name at the bottom of the sidebar and choose Security.
Change password: enter the current password and the new one twice, press Change password, then enter your authenticator code to confirm.
Show my key: after your code, shows the key you sign in with, with a copy button, to add it to another app.
New key or Use my own key: replace your authenticator key. Scan the new key (or paste your own), enter the code your app shows for it, press Continue, and confirm with a code from the key you use today. Codes from the old key stop working right away.
Secrets stay hidden
Saved tokens and passwords (GitHub token, Telegram bot token, database passwords, webhook secrets, basic auth passwords, server passwords) are encrypted in the database and never sent to the browser. A saved field shows Saved.To see one, click the eye icon and enter your authenticator code. Secrets then stay visible for 5 minutes. Five wrong codes block revealing for a minute.Typing in a saved field replaces the value; leaving it empty keeps the saved one.
Access prompt for the panel and phpMyAdmin
Security → Access puts a browser sign-in box in front of the panel and phpMyAdmin, before any page loads. Scanners and bots never reach the login page or phpMyAdmin at all.For each of them, choose what the box asks for:
Choice
How to sign in
Authenticator code
Type your current 6-digit code in the Username box (or the Password box).
Username and password
A username and password you set on the page.
Password + code
The username, then the password with your 6-digit code typed right after it (mypassword123456).
Allowed IPs never see the box. One IP or range per line (203.0.113.7, 198.51.100.0/24, IPv6 too). Add my IP adds the one you use now. Behind the Cloudflare tunnel the real visitor IP is used.
After a right answer the browser stays signed in for 1 to 72 hours (you choose).
Five wrong answers block that IP for 15 minutes.
Webhooks (/hooks/...) and the health check (/up) stay open, so deploys and heartbeats keep working.
Saving asks for your authenticator code.
phpMyAdmin is its own app, so Laravelify adds a short block to its nginx file: nginx asks the panel before each phpMyAdmin page. Turning the box off removes the block again.
Locked out? On the server run sudo -u laravelify php /opt/laravelify/artisan laravelify:access-off (add panel or phpmyadmin to turn off only one).
The next sign-in asks you to set up two-factor again.
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Laravelify","description":"Self-hosted deploys for any app (Laravel, Node.js, React, Vue, Next.js and more) on your own Ubuntu server.","colors":{"primary":"#6B16ED","light":"#FCD452","dark":"#6B16ED"},"logo":{"light":"https://mintcdn.com/laravelify-cloud/7HpauvLuhstPYfIz/logo/light.svg?fit=max\u0026auto=format\u0026n=7HpauvLuhstPYfIz\u0026q=85\u0026s=cc53dff668a2d2051f5338b2c250c6e2","dark":"https://mintcdn.com/laravelify-cloud/7HpauvLuhstPYfIz/logo/dark.svg?fit=max\u0026auto=format\u0026n=7HpauvLuhstPYfIz\u0026q=85\u0026s=1d66ee24057fbba7f76f4be06aab43c3","href":"/"},"favicon":"https://mintcdn.com/laravelify-cloud/7HpauvLuhstPYfIz/favicon.svg?fit=max\u0026auto=format\u0026n=7HpauvLuhstPYfIz\u0026q=85\u0026s=f4fe98cd54a30a1d0dd906a2ea5c7cb7","appearance":{"default":"dark"},"background":{"decoration":"gradient"},"navbar":{"links":[{"href":"https://laravelify.cloud","label":"Website"},{"href":"https://github.com/laravelify-cloud/laravelify/issues","label":"Issues"}],"primary":{"type":"github","href":"https://github.com/laravelify-cloud/laravelify"}},"footer":{"socials":{"github":"https://github.com/laravelify-cloud/laravelify","website":"https://laravelify.cloud"}},"seo":{"metatags":{"og:image":"/images/og-image.png"}},"fonts":{"family":"Instrument Sans"},"banner":{"content":"Laravelify is in **public beta**. Try it on a test server first and [report what breaks](https://github.com/laravelify-cloud/laravelify/issues).","dismissible":true},"contextual":{"options":["copy","view","chatgpt","claude"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/laravelify-cloud/laravelify"},{"anchor":"Issues","icon":"bug","href":"https://github.com/laravelify-cloud/laravelify/issues"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"laravelify-cloud","hasAudioNarration":false,"actualSubdomain":"laravelify-cloud","customDomains":["docs.laravelify.cloud"],"gitSource":{"type":"github","owner":"laravelify-cloud","repo":"laravelify-docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":""},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6af68d1522e707c5fdeb2c37","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Websites","count":11},{"language":"default","tag":"Tools","count":7},{"language":"default","tag":"Installation","count":6},{"language":"default","tag":"Monitoring \u0026 alerts","count":5},{"language":"default","tag":"Security","count":3},{"language":"default","tag":"Concepts","count":2},{"language":"default","tag":"Help","count":2},{"language":"default","tag":"Getting started","count":2},{"language":"default","tag":"Backups","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":true},"customCss":[]}
{"page":{"pagePath":"security/authentication","slug":"/security/authentication","pageMetadata":{"title":"Sign-in and two-factor","description":"One admin account, an authenticator app, and secrets behind your code.","href":"/security/authentication"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"One admin account, an authenticator app, and secrets behind your code.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={code:`code`,li:`li`,p:`p`,pre:`pre`,span:`span`,strong:`strong`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,ul:`ul`,..._provideComponents(),...props.components},{CodeBlock,Heading,Table,Warning}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Table)_missingMdxReference(`Table`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`one-admin`,children:`One admin`}),`\n`,_jsxs(_components.p,{children:[`Laravelify has a single admin account. The first visit to the panel goes to `,_jsx(_components.code,{children:`/setup`}),`, which needs the token from the installer’s setup link; after that account exists, there is no registration page.`]}),`\n`,_jsx(_components.p,{children:`Logging in is rate limited: five wrong answers (password or authenticator code) for one account from one IP, or twenty from one IP, pause logins for five minutes. The password and the code are both checked before a session starts.`}),`\n`,_jsx(Heading,{level:`2`,id:`two-factor-is-required`,children:`Two-factor is required`}),`\n`,_jsxs(_components.p,{children:[`Right after creating the account you set up an authenticator app (Google Authenticator, 1Password, Authy, Bitwarden) and enter the 6-digit code. Until then every page is locked. Later sign-ins at `,_jsx(_components.code,{children:`/login`}),` ask for email, password, and the current code.`]}),`\n`,_jsx(_components.p,{children:`The setup page has two choices:`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`New key:`}),` scan the QR code, or copy the key into your app. `,_jsx(_components.strong,{children:`Make a different key`}),` gives you another one.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Use my own key:`}),` paste a key you already use in another app or password manager, so one entry in your app gives codes for both. A plain key (`,_jsx(_components.code,{children:`JBSW Y3DP …`}),`, spaces do not matter) or an `,_jsx(_components.code,{children:`otpauth://`}),` link both work. It must be at least 16 characters of A–Z and 2–7.`]}),`\n`]}),`\n`,_jsx(Warning,{children:_jsx(_components.p,{children:`Keep the setup key from the QR screen somewhere safe. If you lose the authenticator, you need shell access to the server to reset it.`})}),`\n`,_jsx(Heading,{level:`2`,id:`your-account-security`,children:`Your account: Security`}),`\n`,_jsxs(_components.p,{children:[`Open the menu under your name at the bottom of the sidebar and choose `,_jsx(_components.strong,{children:`Security`}),`.`]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Change password:`}),` enter the current password and the new one twice, press `,_jsx(_components.strong,{children:`Change password`}),`, then enter your authenticator code to confirm.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Show my key:`}),` after your code, shows the key you sign in with, with a copy button, to add it to another app.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`New key`}),` or `,_jsx(_components.strong,{children:`Use my own key:`}),` replace your authenticator key. Scan the new key (or paste your own), enter the code your app shows for it, press `,_jsx(_components.strong,{children:`Continue`}),`, and confirm with a code from the key you use today. Codes from the old key stop working right away.`]}),`\n`]}),`\n`,_jsx(Heading,{level:`2`,id:`secrets-stay-hidden`,children:`Secrets stay hidden`}),`\n`,_jsxs(_components.p,{children:[`Saved tokens and passwords (GitHub token, Telegram bot token, database passwords, webhook secrets, basic auth passwords, server passwords) are encrypted in the database and never sent to the browser. A saved field shows `,_jsx(_components.strong,{children:`Saved`}),`.`]}),`\n`,_jsxs(_components.p,{children:[`To see one, click the `,_jsx(_components.strong,{children:`eye`}),` icon and enter your authenticator code. Secrets then stay visible for 5 minutes. Five wrong codes block revealing for a minute.`]}),`\n`,_jsx(_components.p,{children:`Typing in a saved field replaces the value; leaving it empty keeps the saved one.`}),`\n`,_jsx(Heading,{level:`2`,id:`access-prompt-for-the-panel-and-phpmyadmin`,children:`Access prompt for the panel and phpMyAdmin`}),`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Security → Access`}),` puts a browser sign-in box in front of the panel and phpMyAdmin, before any page loads. Scanners and bots never reach the login page or phpMyAdmin at all.`]}),`\n`,_jsx(_components.p,{children:`For each of them, choose what the box asks for:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Choice`}),_jsx(_components.th,{children:`How to sign in`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Authenticator code`})}),_jsx(_components.td,{children:`Type your current 6-digit code in the Username box (or the Password box).`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Username and password`})}),_jsx(_components.td,{children:`A username and password you set on the page.`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:_jsx(_components.strong,{children:`Password + code`})}),_jsxs(_components.td,{children:[`The username, then the password with your 6-digit code typed right after it (`,_jsx(_components.code,{children:`mypassword123456`}),`).`]})]})]})]}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Allowed IPs`}),` never see the box. One IP or range per line (`,_jsx(_components.code,{children:`203.0.113.7`}),`, `,_jsx(_components.code,{children:`198.51.100.0/24`}),`, IPv6 too). `,_jsx(_components.strong,{children:`Add my IP`}),` adds the one you use now. Behind the Cloudflare tunnel the real visitor IP is used.`]}),`\n`,_jsx(_components.li,{children:`After a right answer the browser stays signed in for 1 to 72 hours (you choose).`}),`\n`,_jsx(_components.li,{children:`Five wrong answers block that IP for 15 minutes.`}),`\n`,_jsxs(_components.li,{children:[`Webhooks (`,_jsx(_components.code,{children:`/hooks/...`}),`) and the health check (`,_jsx(_components.code,{children:`/up`}),`) stay open, so deploys and heartbeats keep working.`]}),`\n`,_jsx(_components.li,{children:`Saving asks for your authenticator code.`}),`\n`]}),`\n`,_jsx(_components.p,{children:`phpMyAdmin is its own app, so Laravelify adds a short block to its nginx file: nginx asks the panel before each phpMyAdmin page. Turning the box off removes the block again.`}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[`Locked out? On the server run `,_jsx(_components.code,{children:`sudo -u laravelify php /opt/laravelify/artisan laravelify:access-off`}),` (add `,_jsx(_components.code,{children:`panel`}),` or `,_jsx(_components.code,{children:`phpmyadmin`}),` to turn off only one).`]})}),`\n`,_jsx(Heading,{level:`2`,id:`reset-two-factor-from-the-server`,children:`Reset two-factor from the server`}),`\n`,_jsx(CodeBlock,{filename:``,numberOfLines:`2`,language:`shellscript`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`shellscript`,children:_jsxs(_components.code,{language:`shellscript`,numberOfLines:`2`,children:[_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#DCDCAA`},children:`cd`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` /opt/laravelify`})]}),`\n`,_jsxs(_components.span,{className:`line`,children:[_jsx(_components.span,{style:{color:`#953800`,\"--shiki-dark\":`#DCDCAA`},children:`sudo`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` -u`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` laravelify`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` php`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` artisan`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` tinker`}),_jsx(_components.span,{style:{color:`#0550AE`,\"--shiki-dark\":`#569CD6`},children:` --execute`}),_jsx(_components.span,{style:{color:`#0A3069`,\"--shiki-dark\":`#CE9178`},children:` 'App\\\\Models\\\\User::first()->forceFill([\"two_factor_secret\" => null, \"two_factor_confirmed_at\" => null])->save();'`})]}),`\n`]})})}),`\n`,_jsx(_components.p,{children:`The next sign-in asks you to set up two-factor again.`})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Sign-in and two-factor","description":"One admin account, an authenticator app, and secrets behind your code.","href":"/security/authentication"}}},"mdxSourceWithNoJs":null},"mdxExtracts":{"tableOfContents":[{"title":"One admin","slug":"one-admin","depth":2,"children":[]},{"title":"Two-factor is required","slug":"two-factor-is-required","depth":2,"children":[]},{"title":"Your account: Security","slug":"your-account-security","depth":2,"children":[]},{"title":"Secrets stay hidden","slug":"secrets-stay-hidden","depth":2,"children":[]},{"title":"Access prompt for the panel and phpMyAdmin","slug":"access-prompt-for-the-panel-and-phpmyadmin","depth":2,"children":[]},{"title":"Reset two-factor from the server","slug":"reset-two-factor-from-the-server","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"laravelify-cloud","siteName":"Laravelify","title":"Sign-in and two-factor - Laravelify","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-16T10:34:43.803Z","originalFileLocation":"security/authentication.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"dark\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"One admin account, an authenticator app, and secrets behind your code.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Laravelify\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Sign-in and two-factor - Laravelify\">\u003cmeta data-mint-head property=\"og:description\" content=\"One admin account, an authenticator app, and secrets behind your code.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Laravelify\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.laravelify.cloud/security/authentication\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://laravelify-cloud.mintlify.site/images/og-image.png\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Sign-in and two-factor - Laravelify\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"One admin account, an authenticator app, and secrets behind your code.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://laravelify-cloud.mintlify.site/images/og-image.png\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/laravelify-cloud/aU5epQu0aQEattP0/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Laravelify\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#6B16ED\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.laravelify.cloud/security/authentication\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/security/authentication.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.laravelify.cloud/#organization\",\"name\":\"Laravelify\",\"url\":\"https://docs.laravelify.cloud\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/laravelify-cloud/7HpauvLuhstPYfIz/logo/light.svg?fit=max\u0026auto=format\u0026n=7HpauvLuhstPYfIz\u0026q=85\u0026s=cc53dff668a2d2051f5338b2c250c6e2\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.laravelify.cloud#website\",\"name\":\"Laravelify\",\"url\":\"https://docs.laravelify.cloud\",\"publisher\":{\"@id\":\"https://docs.laravelify.cloud/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.laravelify.cloud/security/authentication#webpage\",\"url\":\"https://docs.laravelify.cloud/security/authentication\",\"name\":\"Sign-in and two-factor\",\"description\":\"One admin account, an authenticator app, and secrets behind your code.\",\"dateModified\":\"2026-10-16T10:34:43.803Z\",\"isPartOf\":{\"@id\":\"https://docs.laravelify.cloud#website\"},\"breadcrumb\":{\"@id\":\"https://docs.laravelify.cloud/security/authentication#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.laravelify.cloud/security/authentication#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Laravelify\",\"item\":\"https://docs.laravelify.cloud\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Sign-in and two-factor\",\"item\":\"https://docs.laravelify.cloud/security/authentication\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.laravelify.cloud/security/authentication#article\",\"headline\":\"Sign-in and two-factor\",\"name\":\"Sign-in and two-factor\",\"description\":\"One admin account, an authenticator app, and secrets behind your code.\",\"url\":\"https://docs.laravelify.cloud/security/authentication\",\"mainEntityOfPage\":{\"@id\":\"https://docs.laravelify.cloud/security/authentication#webpage\"},\"image\":\"https://docs.laravelify.cloud/images/og-image.png\",\"dateModified\":\"2026-10-16T10:34:43.803Z\",\"publisher\":{\"@id\":\"https://docs.laravelify.cloud/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.laravelify.cloud#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Laravelify\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Laravelify\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/security/authentication.md","siteName":"Laravelify","nav":{"global":{"anchors":[{"anchor":"GitHub","icon":"github","href":"https://github.com/laravelify-cloud/laravelify"},{"anchor":"Issues","icon":"bug","href":"https://github.com/laravelify-cloud/laravelify/issues"}]},"groups":[{"group":"Getting started","pages":[{"title":"Introduction","href":"/introduction"},{"title":"Quickstart","href":"/quickstart"}]},{"group":"Installation","pages":[{"title":"Server requirements","href":"/installation/requirements"},{"title":"Installation","href":"/installation/install"},{"title":"Laravelify Cloud","href":"/installation/laravelify-cloud"},{"title":"Configuration","href":"/installation/configuration"},{"title":"Updating","href":"/installation/updating"},{"title":"Uninstall","href":"/installation/uninstall"}]},{"group":"Concepts","pages":[{"title":"Architecture","href":"/concepts/architecture"},{"title":"Features","href":"/concepts/features"}]},{"group":"Websites","pages":[{"title":"Groups and websites","href":"/websites/groups-and-websites"},{"title":"Environments","href":"/websites/environments"},{"title":"Frameworks","href":"/websites/frameworks"},{"title":"Example projects","href":"/websites/example-projects"},{"title":"Laravel sites","href":"/websites/laravel"},{"title":"Next.js sites","href":"/websites/nextjs"},{"title":"Spring Boot sites","href":"/websites/spring-boot"},{"title":"Dockerfile sites","href":"/websites/docker"},{"title":"PHP configuration","href":"/websites/php-configuration"},{"title":"GitHub and auto deploy","href":"/websites/github"},{"title":"Environment, nginx, and processes","href":"/websites/environment-nginx-processes"},{"title":"Cloudflare tunnels","href":"/websites/cloudflare-tunnels"}]},{"group":"Backups","pages":[{"title":"Backups","href":"/backups/backups"}]},{"group":"Monitoring \u0026 alerts","pages":[{"title":"Website monitoring","href":"/monitoring/overview"},{"title":"Server monitoring","href":"/monitoring/server"},{"title":"Heartbeats","href":"/monitoring/heartbeats"},{"title":"Error tracking","href":"/monitoring/error-tracking"},{"title":"Telegram alerts","description":"Deploys, downtime, errors, attacks, and server alerts in Telegram.","href":"/monitoring/telegram"}]},{"group":"Security","pages":[{"title":"Sign-in and two-factor","href":"/security/authentication"},{"title":"Site security","description":"Search engines, crawlers, basic auth, and blocked IPs per website.","href":"/security/site-security"},{"title":"Users and permissions","href":"/security/privilege-separation"}]},{"group":"Tools","pages":[{"title":"VS Code, AI agents, and Live Server","href":"/tools/vs-code"},{"title":"MCP: deploy with an AI assistant","href":"/tools/mcp"},{"title":"File manager and terminal","href":"/tools/file-manager-and-terminal"},{"title":"Database","href":"/tools/database"},{"title":"Logs and health","href":"/tools/logs-and-health"},{"title":"Server services","href":"/tools/server-services"},{"title":"Plugins","href":"/tools/plugins"},{"title":"Settings","href":"/tools/settings"}]},{"group":"Help","pages":[{"title":"Troubleshooting","href":"/troubleshooting"},{"title":"Contributing","href":"/contributing"}]}]},"basePath":"","title":"Sign-in and two-factor - Laravelify","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":["10e4515597"],"chunks":["BannerMarkdown-DMIpkWQi.js","dist-Bg48sGSz.js","lib-DMeTj1gb.js","lib-B8HbPgcC.js","katex-Dbtb6Wk7.js","html-void-elements-mCSPHezU.js","marked.esm-CZWythHk.js"]}