-
-
Notifications
You must be signed in to change notification settings - Fork 407
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add a validation process to new org creation #7453
Conversation
35ac5fd
to
475e52d
Compare
475e52d
to
700e573
Compare
700e573
to
b1cb8b1
Compare
|
||
$user_ref->{org} = $user_ref->{requested_org_id}; | ||
$user_ref->{org_id} = get_string_id_for_lang("no_language", $user_ref->{org}); | ||
A user requested to be part of a producer organization. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that the email sent ? It's a bit crude
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure which mail you are talking about.
To the user, the only mail sent are:
- add_user_email_body (see common.po)
- reset_password_email_body (see common.po)
All the other mail are sent to the team.
templates/emails/user_new_pro_account_admin_notification.tt.html
Outdated
Show resolved
Hide resolved
992d3fc
to
983de4f
Compare
c862a9c
to
750c2e5
Compare
978a432
to
76459b7
Compare
lib/ProductOpener/APITest.pm
Outdated
sub construct_test_url ($target, $prefix = "world") { | ||
my $link = $TEST_MAIN_DOMAIN; | ||
# no cgi inside url ? add display.pl | ||
if (index($target, "cgi") == -1) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I find it odd to use index to see if the url contains cgi (and in fact we should check that it starts with /cgi)
if (index($target, "cgi") == -1) { | |
if ($target =~ /^\/cgi\//) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me, just some minor questions / suggestions.
Thanks a lot for all the extra comments, documentation and cutting into smaller functions.
Wait all server parts to be ready
Co-authored-by: Pierre Slamich <[email protected]>
in create_pro_user.t
6919b4b
to
b716c36
Compare
and construct_test_url
Kudos, SonarCloud Quality Gate passed!
|
What
As a new user subscribe, telling he is from a company, if it's the first for that company, we currently create a new org and attach the user to it.
As there is a lot of potential fake data, we would like a "validation" round.
fixes: #7350