Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Authentication & Audit Logging (#216)
* Drop old & empty tables: Users & RailsAdminHistories * Pre-draft/incomplete * First draft; Rough edges * Draft 2; Bug fixing * Fix test fixtures * Better dashboard * Polishing views, email templates, layouts and more * Updated Dark Theme * Fixup tables and mobile responsive layout * Fix section headers * API key deleted from Sendgrid; Use environment variables * Better date display * Add a Private Note to Password * Only show audit button when logged in * User relation to passwords * Do not install dev gems for tests * Page titles all around * More tests * Disable logins switch * Email footer fixup * New settings manager * config gem and cleanup email templates * Set mailer default host * Fix timeout variables * Updated mailer defaults; Set mailer_sender
- Loading branch information
1 parent
f1e8aea
commit 66344a5
Showing
83 changed files
with
13,589 additions
and
375 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
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 |
---|---|---|
|
@@ -21,4 +21,7 @@ Metrics/PerceivedComplexity: | |
Max: 15 | ||
|
||
Metrics/AbcSize: | ||
Max: 100 | ||
Max: 100 | ||
|
||
Metrics/BlockLength: | ||
Max: 45 |
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,3 +1,4 @@ | ||
release: bundle exec rails db:migrate | ||
web: bundle exec puma -C config/puma.rb | ||
internalweb: bundle exec puma -C config/puma.rb -e private | ||
console: bundle exec rails console |
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,15 @@ | ||
class DashboardController < ApplicationController | ||
before_action :authenticate_user! | ||
|
||
def active | ||
@active_payloads = Password.where(user_id: current_user.id, expired: false) | ||
.paginate(page: params[:page], per_page: 30) | ||
.order(created_at: :desc) | ||
end | ||
|
||
def expired | ||
@expired_payloads = Password.where(user_id: current_user.id, expired: true) | ||
.paginate(page: params[:page], per_page: 30) | ||
.order(expired_on: :desc) | ||
end | ||
end |
Oops, something went wrong.