diff --git a/emails/assets/css/ink.css b/emails/assets/css/ink.css
index 29cba594fbe..e65aed19194 100644
--- a/emails/assets/css/ink.css
+++ b/emails/assets/css/ink.css
@@ -332,9 +332,9 @@ h1, h2, h3, h4, h5, h6 {
h1 {font-size: 40px;}
h2 {font-size: 36px;}
-h3 {font-size: 26px;}
-h4 {font-size: 24px;}
-h5 {font-size: 22px;}
+h3 {font-size: 32px;}
+h4 {font-size: 28px;}
+h5 {font-size: 24px;}
h6 {font-size: 20px;}
body, table.body, p, td {font-size: 14px;line-height:19px;}
@@ -351,25 +351,21 @@ small {
font-size: 10px;
}
-.emphasis {
- font-weight: 600;
-}
-
a {
- color: #E67612;
+ color: #2ba6cb;
text-decoration: none;
}
a:hover {
- color: #ff8f2b !important;
+ color: #2795b6 !important;
}
a:active {
- color: #F2821E !important;
+ color: #2795b6 !important;
}
a:visited {
- color: #E67612 !important;
+ color: #2ba6cb !important;
}
h1 a,
@@ -434,8 +430,8 @@ table.large-button td {
display: block;
width: auto !important;
text-align: center;
- background: #ff8f2b;
- border: 1px solid #ff8f2b;
+ background: #2ba6cb;
+ border: 1px solid #2284a1;
color: #ffffff;
padding: 8px 0;
}
@@ -488,7 +484,7 @@ table.large-button td a {
table.button:hover td,
table.button:visited td,
table.button:active td {
- background: #ff8f2b !important;
+ background: #2795b6 !important;
}
table.button:hover td a,
@@ -502,7 +498,7 @@ table.tiny-button:hover td,
table.small-button:hover td,
table.medium-button:hover td,
table.large-button:hover td {
- background: #F2821E !important;
+ background: #2795b6 !important;
}
table.button:hover td a,
@@ -689,4 +685,4 @@ body.outlook p {
table[class="body"] .hide-for-desktop {
display: inherit !important;
}
-}
\ No newline at end of file
+}
diff --git a/emails/templates/invited_to_org.html b/emails/templates/invited_to_org.html
index bb79b141dcf..679c0062131 100644
--- a/emails/templates/invited_to_org.html
+++ b/emails/templates/invited_to_org.html
@@ -25,22 +25,22 @@
- [[.InvitedBy]] has added you to the [[.OrgName]] organization in Grafana.
+ [[.InvitedBy]] has added you to the [[.OrgName]] organization in Grafana.
Once logged in, [[.OrgName]] will be available in the left side menu, in the dropdown below your username.
|
|
-
+
|
-
+
diff --git a/pkg/api/org_invite.go b/pkg/api/org_invite.go
index ecad941ede3..e4e0de126e9 100644
--- a/pkg/api/org_invite.go
+++ b/pkg/api/org_invite.go
@@ -181,7 +181,9 @@ func CompleteInvite(c *middleware.Context, completeInvite dtos.CompleteInviteFor
// add to org
addOrgUserCmd := m.AddOrgUserCommand{OrgId: invite.OrgId, UserId: user.Id, Role: invite.Role}
if err := bus.Dispatch(&addOrgUserCmd); err != nil {
- return ApiError(500, "Error while trying to create org user", err)
+ if err != m.ErrOrgUserAlreadyAdded {
+ return ApiError(500, "Error while trying to create org user", err)
+ }
}
// set org to active
diff --git a/public/emails/invited_to_org.html b/public/emails/invited_to_org.html
index f4a2bf6a8dd..ae2d129fa83 100644
--- a/public/emails/invited_to_org.html
+++ b/public/emails/invited_to_org.html
@@ -19,13 +19,13 @@ body {
font-size: 14px; line-height: 19px;
}
a:hover {
-color: #ff8f2b !important;
+color: #2795b6 !important;
}
a:active {
-color: #F2821E !important;
+color: #2795b6 !important;
}
a:visited {
-color: #E67612 !important;
+color: #2ba6cb !important;
}
body {
font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;
@@ -140,22 +140,22 @@ color: #FFFFFF !important;
- {{.InvitedBy}} has added you to the {{.OrgName}} organization in Grafana.
+ {{.InvitedBy}} has added you to the {{.OrgName}} organization in Grafana.
Once logged in, {{.OrgName}} will be available in the left side menu, in the dropdown below your username.
|
|
-
+
|
-
+
diff --git a/public/emails/new_user_invite.html b/public/emails/new_user_invite.html
index d3f0c615993..1504ca1453c 100644
--- a/public/emails/new_user_invite.html
+++ b/public/emails/new_user_invite.html
@@ -19,13 +19,13 @@ body {
font-size: 14px; line-height: 19px;
}
a:hover {
-color: #ff8f2b !important;
+color: #2795b6 !important;
}
a:active {
-color: #F2821E !important;
+color: #2795b6 !important;
}
a:visited {
-color: #E67612 !important;
+color: #2ba6cb !important;
}
body {
font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;
diff --git a/public/emails/reset_password.html b/public/emails/reset_password.html
index 49b4a28ae7b..46947a74c30 100644
--- a/public/emails/reset_password.html
+++ b/public/emails/reset_password.html
@@ -19,13 +19,13 @@ body {
font-size: 14px; line-height: 19px;
}
a:hover {
-color: #ff8f2b !important;
+color: #2795b6 !important;
}
a:active {
-color: #F2821E !important;
+color: #2795b6 !important;
}
a:visited {
-color: #E67612 !important;
+color: #2ba6cb !important;
}
body {
font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;
diff --git a/public/emails/welcome_on_signup.html b/public/emails/welcome_on_signup.html
index 53798e83eb1..f2f931689c1 100644
--- a/public/emails/welcome_on_signup.html
+++ b/public/emails/welcome_on_signup.html
@@ -19,13 +19,13 @@ body {
font-size: 14px; line-height: 19px;
}
a:hover {
-color: #ff8f2b !important;
+color: #2795b6 !important;
}
a:active {
-color: #F2821E !important;
+color: #2795b6 !important;
}
a:visited {
-color: #E67612 !important;
+color: #2ba6cb !important;
}
body {
font-family: 'Open Sans', 'Helvetica Neue', 'Helvetica', Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: none;