-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
25 changed files
with
164 additions
and
88 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
OVERMIND_PROCFILE=Procfile.dev | ||
HIVEMIND_PROCFILE=Procfile.dev | ||
PORT=3000 | ||
OVERMIND_ENV=./.env.local | ||
HIVEMIND_ENV=./.env.local | ||
RSPEC_RETRY_RETRY_COUNT=0 |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
class MainController < ApplicationController | ||
skip_before_action :authenticate_user! | ||
allow_unauthenticated_access | ||
|
||
def index | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,50 +1,21 @@ | ||
# Files in the config/locales directory are used for internationalization and | ||
# are automatically loaded by Rails. If you want to use locales other than | ||
# English, add the necessary files in this directory. | ||
# | ||
# To use the locales, use `I18n.t`: | ||
# | ||
# I18n.t "hello" | ||
# | ||
# In views, this is aliased to just `t`: | ||
# | ||
# <%= t("hello") %> | ||
# | ||
# To use a different locale, set it with `I18n.locale`: | ||
# | ||
# I18n.locale = :es | ||
# | ||
# This would use the information in config/locales/es.yml. | ||
# | ||
# To learn more about the API, please read the Rails Internationalization guide | ||
# at https://guides.rubyonrails.org/i18n.html. | ||
# | ||
# Be aware that YAML interprets the following case-insensitive strings as | ||
# booleans: `true`, `false`, `on`, `off`, `yes`, `no`. Therefore, these strings | ||
# must be quoted to be interpreted as strings. For example: | ||
# | ||
# en: | ||
# "yes": yup | ||
# enabled: "ON" | ||
|
||
en: | ||
controllers: | ||
concerns: | ||
authentication: | ||
unauthorized: "You must be logged in to do that." | ||
unauthorized: "You need to sign in or sign up before continuing." | ||
password_resets: | ||
create: | ||
notice: "Check your email to reset your password." | ||
update: | ||
notice: "Your password has been reset successfully. Please login." | ||
errors: | ||
invalid_token: "Invalid token, please try again" | ||
invalid_token: "Invalid token, please try again." | ||
passwords: | ||
update: | ||
notice: "Your password has been updated successfully." | ||
sessions: | ||
create: | ||
notice: "You have signed successfully." | ||
notice: "Signed in successfully." | ||
alert: "Invalid email or password." | ||
destroy: | ||
notice: "You have been logged out." | ||
notice: "You have been logged out." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
module AuthenticationHelper | ||
def sign_in(user, password = "password2024") | ||
if respond_to?(:visit) # System specs | ||
visit new_session_path | ||
find_dti("email_field").set(user.email) | ||
find_dti("password_field").set(password) | ||
find_dti("sign_in_button").click | ||
else # Controller specs | ||
session[:user_id] = user.id | ||
end | ||
end | ||
end | ||
|
||
RSpec.configure do |config| | ||
config.include AuthenticationHelper, type: :system | ||
config.include AuthenticationHelper, type: :controller | ||
end |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.