Improve auth UX and password strength across dashboards.
Remove business self-registration, localize SMS/auth errors, add password strength + confirm on reset/signup, and brand customer role as website user. Also include websites SSL sync UI updates. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
co-authored by
Cursor
parent
656fc57494
commit
aeaad0f645
@@ -1,5 +1,11 @@
|
||||
import { apiRequest } from '../lib/api'
|
||||
import type { DeployDomainResponse, DomainsListResponse, SyncSslResponse } from '../types/domain'
|
||||
import type {
|
||||
DeployDomainResponse,
|
||||
DomainsListResponse,
|
||||
IssueDomainSslResponse,
|
||||
IssueWebsiteSslResponse,
|
||||
SyncSslResponse,
|
||||
} from '../types/domain'
|
||||
|
||||
export interface ListDomainsParams {
|
||||
page?: number
|
||||
@@ -67,3 +73,19 @@ export async function syncSsl() {
|
||||
auth: true,
|
||||
})
|
||||
}
|
||||
|
||||
/** Batch-issue Let's Encrypt for storefronts missing SSL (websites VM). */
|
||||
export async function issueWebsiteSsl() {
|
||||
return apiRequest<IssueWebsiteSslResponse>('/domains/website-ssl', {
|
||||
method: 'POST',
|
||||
auth: true,
|
||||
})
|
||||
}
|
||||
|
||||
/** Issue Let's Encrypt for one storefront domain. */
|
||||
export async function issueDomainSsl(domainId: number | string) {
|
||||
return apiRequest<IssueDomainSslResponse>(`/domains/${domainId}/issue-ssl`, {
|
||||
method: 'POST',
|
||||
auth: true,
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user