Add login endpoint and update Android login to username/password #17

Merged
rafaga21 merged 4 commits from feature/login-endpoint into master 2026-06-07 18:13:27 -04:00
Collaborator

Summary

Add a username/password login endpoint for the Android app and update the app to use it.

Changes

Server side

  • POST /api/auth/login — New API endpoint accepting {username, password} JSON, returns the user API token and user info
  • Auto-generates API token if user does not have one yet

Android app

  • Login screen now uses Username + Password fields (matching the web app)
  • Production URL hardcoded to https://servermanager.devlab.lat
  • Calls POST /api/auth/login for authentication

UI

  • Sidebar nav item and dashboard stat card to download the APK

Git

  • android/ directory excluded from version control
## Summary Add a username/password login endpoint for the Android app and update the app to use it. ### Changes **Server side** - `POST /api/auth/login` — New API endpoint accepting `{username, password}` JSON, returns the user API token and user info - Auto-generates API token if user does not have one yet **Android app** - Login screen now uses Username + Password fields (matching the web app) - Production URL hardcoded to `https://servermanager.devlab.lat` - Calls `POST /api/auth/login` for authentication **UI** - Sidebar nav item and dashboard stat card to download the APK **Git** - `android/` directory excluded from version control
agent added 2 commits 2026-06-07 18:05:26 -04:00
- Add POST /api/auth/login endpoint on server side
- Update Android login screen to username/password fields
- Hardcode production URL https://servermanager.devlab.lat
- Rebuild APK with login changes
- Add sidebar nav item and dashboard stat card for APK download
- Add android/ to .gitignore
rafaga21 approved these changes 2026-06-07 18:06:09 -04:00
Dismissed
agent added 1 commit 2026-06-07 18:10:44 -04:00
agent added 1 commit 2026-06-07 18:12:46 -04:00
agent dismissed rafaga21's review 2026-06-07 18:12:46 -04:00
Reason:

New commits pushed, approval review dismissed automatically according to repository settings

rafaga21 approved these changes 2026-06-07 18:13:22 -04:00
rafaga21 merged commit 07abd1f7a9 into master 2026-06-07 18:13:27 -04:00
rafaga21 deleted branch feature/login-endpoint 2026-06-07 18:13:28 -04:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: devlab/server-manager#17