修复报错页面
This commit is contained in:
@@ -15,6 +15,7 @@ export function createCandidateViews(context) {
|
||||
icons,
|
||||
api,
|
||||
renderError,
|
||||
requireLogin,
|
||||
emptyState,
|
||||
brand
|
||||
} = context;
|
||||
@@ -73,7 +74,7 @@ export function createCandidateViews(context) {
|
||||
}
|
||||
|
||||
async function renderCandidate(page) {
|
||||
if (state.user?.role !== 'candidate') return navigate('login');
|
||||
if (state.user?.role !== 'candidate') return requireLogin();
|
||||
app.classList.remove('admin-readable');
|
||||
if (state.user.mustChangePassword) {
|
||||
app.innerHTML = onboardingShell('password', passwordOnboardingForm());
|
||||
|
||||
Reference in New Issue
Block a user