Commit Graph

8 Commits (v1.2.0)

Author SHA1 Message Date
veypi 3913640f5b feat(auth): replace user-level token version with session-based authentication
- Replace global user token version with per-session versioning in JWT claims
    - Add session CRUD operations with DB + Redis dual-write caching strategy
    - Create/list/revoke individual sessions and batch revoke other sessions
    - Update login flow to create sessions with device info and IP extraction
    - Update refresh flow to validate and rotate session-level token version
    - Update logout to revoke only the current session instead of all tokens
    - Add session management UI page with device/browser detection and relative time display
    - Add i18n keys for session management in both Chinese and English
    - Add sessions route and navigation menu items in both default and icon layouts
4 days ago
veypi d3137955c3 feat(auth): add SMS/email verification code support for registration
- Add validateRegisterCode function to verify codes during registration
    - Integrate Aliyun SMS SDK (dysmsapi-20170525) replacing placeholder
    - Make cookie names configurable via JWT CookiePrefix setting
    - Rename login type "phone" to "sms" for consistency
    - Add 1-minute TTL cache for setting values
    - Add $fetch wrapper replacing raw fetch calls across all UI pages
    - Add verification code inputs with countdown send buttons to register UI
    - Move CSS/JS assets from root.html to auth and default layouts
    - Add scope parameter to VBase permission check methods
    - Add i18n entries for verification code messages (zh/en)
    - Fix route guard to use next('/403') instead of router.push
2 weeks ago
veypi 7022c2b52f refactor(ui): Replace axios with fetch in all pages and extract auth layout
- Replace all $axios calls with native fetch across 8 page files
    - Add inline send-code button to login page code flow
    - Extract animated bubble background into shared auth layout
    - Restructure langs.json with zh-CN first, add new i18n keys
    - Add scoped langs.json for auth.send_code translation
    - Wire auth layout to login and callback routes
    - Fix mobile sign-up panel transform direction
    - Use onAuthSuccess for login/register code flows
3 weeks ago
veypi a63dc65ab6 refactor(ui): Rename $vbase to $auth across frontend
- Rename $mod.$vbase to $mod.$auth in env.js initialization
    - Add guard condition to prevent duplicate VBase initialization
    - Update all page and layout templates to use $auth instead of $vbase
    - Update route guard in routes.js to reference $mod.$auth
1 month ago
veypi aabea8ef4a refactor(ui): Update auth and profile pages to use $mod context
- Replace $env.$vbase with $mod.$vbase in callback.html OAuth handlers
    - Update login.html to use $mod.$vbase for login/register API calls
    - Update profile.html to use $mod.$vbase for user data and logout
    - Fix OAuth providers page to reference $mod.$vbase correctly
2 months ago
veypi d715445cc0 feat(ui): Redesign user profile page with editable fields
- Add profile editing with avatar, nickname, email, phone fields
    - Add identity providers section for OAuth account binding
    - Add account security section with password change
    - Add new i18n translations for profile and auth pages
    - Update vbase.js with improved error handling and user info refresh
    - Include ico component in default layout
3 months ago
veypi 4101daeed3 refactor: 重构用户/组织/OAuth页面UI 4 months ago
veypi e5308f9471 feat: 全新UI框架升级和页面重构 4 months ago