mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-16 23:30:12 +01:00
Tracks is a GTD™ web application, built with Ruby on Rails
https://www.getontracks.org/
Features added: - Automatic creation of default admin user on first startup (login: admin, password: admin) - Admin-only endpoint POST /api/admin/users for creating new users - Admin users can set is_admin flag when creating users - Non-admin users are blocked from accessing admin endpoints Implementation: - Added CreateDefaultAdmin() function in internal/database/database.go - Checks if any users exist, creates admin only if database is empty - Admin user: login "admin", password "admin", is_admin true - Added CreateUser() method to auth service for admin user creation - Added CreateUser() handler to auth handler - Added /api/admin/users endpoint with AuthMiddleware + AdminMiddleware - Updated README_GOLANG.md with: - Default admin credentials - Instructions for creating additional users - Admin API documentation Security: - Default admin password should be changed after first login - AdminMiddleware ensures only users with is_admin=true can access admin routes - Non-admin users receive 403 Forbidden when accessing admin endpoints Tested: - Default admin creation on startup ✓ - Admin login with default credentials ✓ - Admin can create new users ✓ - New users can login ✓ - Non-admin users blocked from admin endpoints ✓ |
||
|---|---|---|
| .github | ||
| app | ||
| bin | ||
| cmd/tracks | ||
| config | ||
| db | ||
| doc | ||
| internal | ||
| lib | ||
| log | ||
| public | ||
| script | ||
| test | ||
| test-envs | ||
| vendor/assets | ||
| .codeclimate.yml | ||
| .dockerignore | ||
| .env.example | ||
| .gitignore | ||
| .rubocop.yml | ||
| .ruby-version | ||
| .yardopts | ||
| config.ru | ||
| CONTRIBUTING.md | ||
| COPYING | ||
| docker-compose.yml | ||
| docker-entrypoint.sh | ||
| Dockerfile | ||
| Gemfile | ||
| Gemfile.lock | ||
| go.mod | ||
| go.sum | ||
| mkdocs.yml | ||
| Rakefile | ||
| README.md | ||
| README_GOLANG.md | ||
| SECURITY.md | ||
| test_api.sh | ||
Tracks: a GTD™ compatible web application built with Ruby on Rails
About
- Project homepage: http://www.getontracks.org/
- Manual: http://www.getontracks.org/manual/
- Source at GitHub: https://github.com/TracksApp/tracks
- Hosted services: https://github.com/TracksApp/tracks/wiki/Hosted-Tracks
- Bug reports and feature requests: https://github.com/TracksApp/tracks/issues
- Mailing list: http://groups.google.com/group/TracksApp
- License: See COPYING
Full instructions for both new installations and upgrades from older installations of Tracks can be found in the wiki.
As always, make sure that you take sensible precautions and back up all your data frequently, taking particular care when you are upgrading.
Enjoy being productive!
Contributors and consulting
- Original developer: bsag (http://www.rousette.org.uk/)
- Principal maintainer: Jyri-Petteri ”ZeiP” Paloposki
(sponsored by Ardcoras oy, also available for paid consulting)
- If you want to support the maintainer's work, subscribe to the hosted version.
- Contributors: https://github.com/TracksApp/tracks/wiki/Contributors
If you are thinking about contributing towards the development of Tracks, please read /CONTRIBUTING.md for general information. Also you can find some information on development, testing and contributing on the wiki.