Go to file
songtianlun 23992ec4b2 feat: add user authentication checks
- Implement before_action to ensure users are logged in
- Add logged_in_user method to handle redirection
- Update user fixture to include new user
- Enhance integration tests to check for login requirement

This commit introduces user authentication checks for the edit and
update actions in the UsersController. It ensures that only logged-in
users can access these actions, improving the security of the
application. Additionally, integration tests have been updated to
verify that users are redirected to the login page if they attempt
to edit or update their information without being logged in.
2025-01-03 11:12:51 +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 checks 2025-01-03 11:12:51 +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 checks 2025-01-03 11:12:51 +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

  • ...