Skip to content

Commit

Permalink
update the orchid error text
Browse files Browse the repository at this point in the history
  • Loading branch information
SirineMhedhbi committed Dec 6, 2023
1 parent 9a5db29 commit 531bea8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/users_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ def validate(params)
end
end
if ((!params[:orcidId].match(/^\d{4}+(-\d{4})+$/)) || (params[:orcidId].length != 19)) && !(params[:orcidId].nil? || params[:orcidId].length < 1)
errors << "Please enter a valide orcid id"
errors << "Please enter a valid ORCID."
end

if params[:username].nil? || params[:username].length < 1 || !params[:username].match(/^[a-zA-Z0-9]([._-](?![._-])|[a-zA-Z0-9]){3,18}[a-zA-Z0-9]$/)
Expand Down

0 comments on commit 531bea8

Please sign in to comment.