songtianlun
bd5c6ae6bb
- Update session creation to use safe navigation operator - Implement log_out method in SessionsHelper - Add session reset and login on user creation - Improve user login tests for better coverage These changes improve the user session management by ensuring that the session is handled more safely and efficiently. The addition of the log_out method centralizes session termination, while the updated tests ensure that both login and logout functionality are thoroughly validated.
10 lines
243 B
YAML
10 lines
243 B
YAML
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
|
|
|
one:
|
|
name: MyString
|
|
email: MyString
|
|
|
|
michael:
|
|
name: Michael Example
|
|
email: michael@example.com
|
|
password_digest: <%= User.digest('password') %> |