Use the configured IP whenever it is set, regardless of how the UI was
reached, so the device script no longer falls back to HOSTNAME="localhost".
Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
- SMTP config with TLS/STARTTLS/plain support and test email
- Notification rules for device online, offline, and remote access
- Recipient management with add/remove endpoints
- Async email sending via goroutines to avoid blocking device runtime
- Admin settings page with SMTP, rules, and recipients sections
- Bell icon added to sidebar menu
- i18n support for all 7 languages
Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
- Record device online/offline, remote SSH, Web and Control sessions
- Add device_event_logs table with MAC, event type and time range indexes
- Distinguish remote_control vs remote_web by device client type
- Admin-only log page with device/access tabs, duration column and filters
- Permission-gated sidebar entry (device_log.read)
Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
- Personal Center page with profile editing and last-login info
- TOTP-based two-factor authentication with QR code setup
- 30-day trusted-device cookie to skip 2FA on familiar browsers
- Friendly browser/OS labels for the trusted device list
Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
- Align API behavior with frontend integration
- Fix issues found during joint debugging
Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
Move deprecated interfaces into the updated project layout to align with the new architecture.
Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
Rename handlers to remove the misleading 'admin' term and better reflect their actual responsibilities, avoiding confusion with admin roles.
Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
Implement editing APIs for user-to-user-group, user-to-device, and device-group-to-device relationships, enabling flexible management of access and resource associations.
Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>
Complete the initial framework for resource-based permission management, providing the foundation for role-based access control and future permission extensions.
Signed-off-by: GL.iNet-Yongping.Xie <yongping.xie@gl-inet.com>