Skip to content

Conversation

@Oli0li
Copy link
Collaborator

@Oli0li Oli0li commented Feb 3, 2025

What Issue Does This PR Cover, If Any?

Resolves #8

What Changed? And Why Did It Change?

For now these are just the basic views with no styling.

The "Remember me" functonality seems to be already handled by Authentication#start_new_session_for(user), which creates a permanent cookie for the use when signing in a user.

We will need to add this on controllers for which authentication is required:
before_action :resume_session, only: [:index]

How Has This Been Tested?

We tested this manually.
We will write tests once RSpec has been added to the project.

Please Provide Screenshots

Capture d'écran 2025-02-03 105635

Additional Comments

The User model will need a provider_id once the Providers table has been created. It will also need special validations for Admins.

"Remember me" seems to be already handled by
Authentication#start_new_session_for(user), which creates a permanent
cookie for the user.
@Oli0li Oli0li force-pushed the epic-1-add-authentication branch from ac95cdc to c18e315 Compare February 3, 2025 12:24
@Oli0li Oli0li requested review from dcollie2 and seanmarcia February 3, 2025 12:25
@seanmarcia seanmarcia merged commit cc52898 into main Feb 3, 2025
4 checks passed
@dmitrytrager dmitrytrager deleted the epic-1-add-authentication branch February 13, 2025 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Basic Authentication Setup

3 participants