Skip to content

Commit

Permalink
feat: sanitize spaces on input_code
Browse files Browse the repository at this point in the history
this helps to correct mistakes from the users

on the email they recieve if the code is double clicked, the code + a
space is selected, leading to some users getting failed logins just
because of that, by sanitizing the spaces on the `input_code` we can
avoid those simples fails and improve the experience
  • Loading branch information
ESCRI11 committed Jun 27, 2024
1 parent ea986bb commit a8ecbe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions components/modules/AuthenticationModule.R
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,7 @@ LoginCodeAuthenticationModule <- function(id,

if (email_sent) {
input_code <- entered_code()
input_code <- gsub(" ", "", input_code)
login.OK <- (input_code == login_code)

if (!login.OK) {
Expand Down

0 comments on commit a8ecbe4

Please sign in to comment.