Added users support

This commit is contained in:
2025-08-19 07:24:18 +02:00
parent 541b181c87
commit 20b62e7312
18 changed files with 592 additions and 35 deletions

View File

@@ -131,4 +131,17 @@ bs:
city: "Grad:"
entity: "Entitet:"
country: "Država:"
sessions:
login: "Prijava"
username_or_email: "Korisničko ime ili email"
username_or_email_placeholder: "Unesite korisničko ime ili email"
password: "Lozinka"
password_placeholder: "Unesite lozinku"
login_button: "Prijaviť se"
logout_button: "Odjavi se"
login_successful: "Uspješno ste se prijavili!"
logout_successful: "Uspješno ste se odjavili!"
invalid_credentials: "Neispravno korisničko ime/email ili lozinka"
login_required: "Molimo prijavite se da biste pristupili ovoj stranici"

View File

@@ -167,3 +167,16 @@ en:
city: "City:"
entity: "Entity:"
country: "Country:"
sessions:
login: "Login"
username_or_email: "Username or Email"
username_or_email_placeholder: "Enter username or email"
password: "Password"
password_placeholder: "Enter password"
login_button: "Log In"
logout_button: "Log Out"
login_successful: "Successfully logged in!"
logout_successful: "Successfully logged out!"
invalid_credentials: "Invalid username/email or password"
login_required: "Please log in to access this page"

View File

@@ -1,4 +1,8 @@
Rails.application.routes.draw do
get '/login', to: 'sessions#new'
post '/login', to: 'sessions#create'
delete '/logout', to: 'sessions#destroy'
root "reservations#index"
resources :customers, param: :composite_key do
get :search, on: :collection
@@ -12,7 +16,7 @@ Rails.application.routes.draw do
# Can be used by load balancers and uptime monitors to verify that the app is live.
get "up" => "rails/health#show", as: :rails_health_check
# config/routes.rb
# config/routes.rb
get "/service-worker.js" => "service_worker#service_worker"
get "/manifest.json" => "service_worker#manifest"
# Defines the root path route ("/")