mirror of
https://github.com/myronblair/novacpx
synced 2026-06-30 17:50:41 -05:00
Fix login and panel visibility for user and reseller portals
- initUser/initReseller: show main-layout and hide auth-check on successful auth (was never shown, causing blank page after login) - Fix login form IDs in user/index.php and reseller/index.php: changed l-user/l-pass/login-err to li-user/li-pass/li-err to match what doLogin() reads; add onsubmit handler so form works immediately without waiting for JS to replace it - Wire logout button in both boot sequences - Fix data.accounts → data in reseller.js (same paginate() bug as admin) - Reset myron user password to Joker1974!!! Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -61,11 +61,11 @@ $_pname = novacpx_panel_name('NovaCPX');
|
||||
</div>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<div id="login-err" class="alert alert-error" style="display:none"></div>
|
||||
<form id="login-form">
|
||||
<div class="form-group"><label>Username or Email</label><input type="text" id="l-user" autofocus required></div>
|
||||
<div class="form-group"><label>Password</label><input type="password" id="l-pass" required></div>
|
||||
<button type="submit" class="btn btn-primary btn-full" id="l-btn">Sign In to Reseller Panel</button>
|
||||
<div id="li-err" class="alert alert-error" style="display:none"></div>
|
||||
<form id="login-form" onsubmit="event.preventDefault();doLogin()">
|
||||
<div class="form-group"><label>Username or Email</label><input type="text" id="li-user" autofocus autocomplete="username"></div>
|
||||
<div class="form-group"><label>Password</label><input type="password" id="li-pass" autocomplete="current-password"></div>
|
||||
<button type="submit" class="btn btn-primary btn-full">Sign In to Reseller Panel</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user