Skip to content

Commit

Permalink
Downcase token types
Browse files Browse the repository at this point in the history
Tokens new form is submitting token types in titelize formate which is
not correct and the code recognises token types with downcase letters
  • Loading branch information
rubhanazeem committed Apr 20, 2022
1 parent e80cfcd commit c1124aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/views/webui/users/tokens/new.html.haml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
- @pagetitle = 'Create Token'
- type_options = Token::OPERATIONS.map { |a| "Token::#{a}".constantize.token_name }
- type_options = Token::OPERATIONS.map { |a| "Token::#{a}".constantize.token_name.downcase }

.card
.card-body
Expand Down

0 comments on commit c1124aa

Please sign in to comment.