Go to file
songtianlun 2b03661431 feat: add user authentication and authorization
- Implement friendly forwarding for user login
- Add correct_user method to ensure users can only edit their own profiles
- Update sessions_controller to handle forwarding URL
- Enhance user controller tests to verify redirection for unauthorized access

These changes improve user experience by allowing users to be redirected
back to their intended page after logging in. Additionally, the new
correct_user method enhances security by preventing users from editing
other users' profiles, ensuring proper authorization checks are in place.
2025-01-03 13:48:59 +08:00
.github init sample-app 2024-12-29 17:12:54 +08:00
.kamal init sample-app 2024-12-29 17:12:54 +08:00
app feat: add user authentication and authorization 2025-01-03 13:48:59 +08:00
bin feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
config fix: correct typos and improve logout link 2025-01-02 15:17:27 +08:00
db feat: add remember me functionality for user sessions 2025-01-02 16:47:26 +08:00
lib/tasks init sample-app 2024-12-29 17:12:54 +08:00
log init sample-app 2024-12-29 17:12:54 +08:00
public init sample-app 2024-12-29 17:12:54 +08:00
script init sample-app 2024-12-29 17:12:54 +08:00
storage init sample-app 2024-12-29 17:12:54 +08:00
test feat: add user authentication and authorization 2025-01-03 13:48:59 +08:00
tmp init sample-app 2024-12-29 17:12:54 +08:00
vendor init sample-app 2024-12-29 17:12:54 +08:00
.dockerignore init sample-app 2024-12-29 17:12:54 +08:00
.gitattributes init sample-app 2024-12-29 17:12:54 +08:00
.gitignore feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
.rubocop.yml init sample-app 2024-12-29 17:12:54 +08:00
.ruby-version add website struct 2024-12-30 13:23:22 +08:00
config.ru init sample-app 2024-12-29 17:12:54 +08:00
Dockerfile init sample-app 2024-12-29 17:12:54 +08:00
Gemfile feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
Gemfile.lock feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
Guardfile finish 2024-12-30 00:09:54 +08:00
package-lock.json feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
package.json feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
Procfile.dev feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00
Rakefile init sample-app 2024-12-29 17:12:54 +08:00
README.md init sample-app 2024-12-29 17:12:54 +08:00
yarn.lock feat: update asset management and add bundling tools 2025-01-02 14:45:44 +08:00

README

This README would normally document whatever steps are necessary to get the application up and running.

Things you may want to cover:

  • Ruby version

  • System dependencies

  • Configuration

  • Database creation

  • Database initialization

  • How to run the test suite

  • Services (job queues, cache servers, search engines, etc.)

  • Deployment instructions

  • ...