diff --git a/README.md b/README.md index 25b136b..bab592b 100644 --- a/README.md +++ b/README.md @@ -86,16 +86,15 @@ To get ThinkDB up and running quickly using DockerHub: 2. Run the container while ensuring SQLite database persistence and setting the `SECRET_KEY_BASE` environment variable. Remember to replace `directory_on_your_machine_for_think_db_storage` and `your_secret_key_base_here` with your actual directory path and secret key base: ```sh - # change directory_on_your_machine_for_think_db_storage & your_secret_key_base_here - docker run -d -p 3000:3000 -v directory_on_your_machine_for_think_db_storage:/app/storage -e SECRET_KEY_BASE=your_secret_key_base_here thinkthinkai/think_db:latest + # change directory_on_your_machine_for_think_db_storage + docker run -d -p 3000:3000 -v directory_on_your_machine_for_think_db_storage:/app/storage thinkthinkai/think_db:latest ``` ### Security Note It's outside the scope of this README to walk you through securing your Docker container and any web application you host within it. However, we strongly recommend that: -1. **SECRET_KEY_BASE**: This should be managed securely—preferably through Docker secrets if using Docker Swarm or Kubernetes, or via a trusted secret management solution—to ensure it’s not exposed in plaintext within your environment variables. -2. **TLS/SSL**: Always serve your web application over HTTPS using a valid TLS certificate to encrypt data transmitted over the network. +**TLS/SSL**: Always serve your web application over HTTPS using a valid TLS certificate to encrypt data transmitted over the network. ### Using Rails Outside a Container (The Harder Method) diff --git a/VERSION b/VERSION index d367ada..4f6bc7b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.0.20-alpha \ No newline at end of file +1.0.21-alpha \ No newline at end of file diff --git a/app/views/devise/registrations/new.html.erb b/app/views/devise/registrations/new.html.erb index d655b66..79f847a 100644 --- a/app/views/devise/registrations/new.html.erb +++ b/app/views/devise/registrations/new.html.erb @@ -1,29 +1,45 @@ -

Sign up

- -<%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> - <%= render "devise/shared/error_messages", resource: resource %> - -
- <%= f.label :email %>
- <%= f.email_field :email, autofocus: true, autocomplete: "email" %> +
+
+
+

Sign up

+
+
+
+
+
+ <%= form_for(resource, as: resource_name, url: registration_path(resource_name)) do |f| %> + <%= render "devise/shared/error_messages", resource: resource %> -
- <%= f.label :password %> - <% if @minimum_password_length %> - (<%= @minimum_password_length %> characters minimum) - <% end %>
- <%= f.password_field :password, autocomplete: "new-password" %> -
+
+ <%= f.label :email, class: "form-label" %> + <%= f.email_field :email, autofocus: true, autocomplete: "email", class: "form-control" %> +
-
- <%= f.label :password_confirmation %>
- <%= f.password_field :password_confirmation, autocomplete: "new-password" %> -
+
+ <%= f.label :password, class: "form-label" %> + <% if @minimum_password_length %> + (<%= @minimum_password_length %> characters minimum) + <% end %> + <%= f.password_field :password, autocomplete: "new-password", class: "form-control" %> +
+ +
+ <%= f.label :password_confirmation, class: "form-label" %> + <%= f.password_field :password_confirmation, autocomplete: "new-password", class: "form-control" %> +
-
- <%= f.submit "Sign up" %> + <%= link_to 'Log In', new_user_session_path, class: 'btn btn-primary' %> +
+ <%= f.submit "Sign up", class: "btn btn-primary" %> +
+ <% end %> +
+
+
+
+
-<% end %> +
<%= render "devise/shared/links" %> diff --git a/app/views/devise/sessions/new.html.erb b/app/views/devise/sessions/new.html.erb index 81e5c04..10037a9 100644 --- a/app/views/devise/sessions/new.html.erb +++ b/app/views/devise/sessions/new.html.erb @@ -21,6 +21,7 @@ <%= form.check_box :remember_me, class: "form-check-input" %> <%= form.label :remember_me, class: "form-check-label" %>
+ <%= link_to 'Sign Up', new_user_registration_path, class: 'btn btn-primary' %>
<%= form.submit "Log in", class: "btn btn-primary" %>