Add auth and ruby update

This commit is contained in:
david 2024-09-22 21:57:05 +02:00
parent 5d50194f39
commit fbf6923835
43 changed files with 614 additions and 64 deletions

View file

@ -0,0 +1,8 @@
require "test_helper"
class BackofficeControllerTest < ActionDispatch::IntegrationTest
test "should get show" do
get backoffice_show_url
assert_response :success
end
end

View file

@ -0,0 +1,8 @@
require "test_helper"
class PublicControllerTest < ActionDispatch::IntegrationTest
test "should get root" do
get public_root_url
assert_response :success
end
end

10
test/fixtures/accounts.yml vendored Normal file
View file

@ -0,0 +1,10 @@
# Read about fixtures at https://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
one:
email: freddie@queen.com
password_hash: <%= RodauthApp.rodauth.allocate.password_hash("password") %>
status: verified
two:
email: brian@queen.com
password_hash: <%= RodauthApp.rodauth.allocate.password_hash("password") %>
status: verified