mirror of
https://github.com/grafana/grafana.git
synced 2026-07-29 15:59:50 -05:00
fix: fixes to signup flow, fixes #9816
This commit is contained in:
@@ -12,7 +12,7 @@ export class InvitedCtrl {
|
||||
icon: 'gicon gicon-branding',
|
||||
text: 'Invite',
|
||||
subTitle: 'Register your Grafana account',
|
||||
breadcrumbs: [{ title: 'Login', url: '/login' }],
|
||||
breadcrumbs: [{ title: 'Login', url: 'login' }],
|
||||
},
|
||||
};
|
||||
|
||||
|
||||
@@ -10,6 +10,13 @@ export class SignUpCtrl {
|
||||
$scope.formModel = {};
|
||||
|
||||
var params = $location.search();
|
||||
|
||||
// validate email is semi ok
|
||||
if (params.email && !params.email.match(/^\S+@\S+$/)) {
|
||||
console.log('invalid email');
|
||||
return;
|
||||
}
|
||||
|
||||
$scope.formModel.orgName = params.email;
|
||||
$scope.formModel.email = params.email;
|
||||
$scope.formModel.username = params.email;
|
||||
|
||||
Reference in New Issue
Block a user