aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStruan Donald <struan@exo.org.uk>2017-10-23 14:25:56 +0100
committerStruan Donald <struan@exo.org.uk>2017-10-23 14:27:40 +0100
commit917245cd73f7b4dcd9fe800352eeb4138238346d (patch)
tree73d69a5ad0ec567032b4bd764afedc739fa82819
parent8e5853830f0fb65985881272b3b0178b37ac947b (diff)
[demo] set email_verified to true when creating demo users
otherwise the login doesn't work post sms auth changes.
-rwxr-xr-xbin/fixmystreet.com/fixture10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/fixmystreet.com/fixture b/bin/fixmystreet.com/fixture
index 2636ec1cc..02f0505e9 100755
--- a/bin/fixmystreet.com/fixture
+++ b/bin/fixmystreet.com/fixture
@@ -85,15 +85,15 @@ my $perms_cs = [
'moderate', 'view_body_contribute_details',
];
foreach (
- { name => 'Inspector Gadget', email => 'inspector@example.org', body => $body, permissions => $perms_inspector },
- { name => 'Harriet Helpful', email => 'cs@example.org', body => $body, permissions => $perms_cs },
- { name => 'Super User', email => 'super@example.org', body => $body, permissions => [
+ { name => 'Inspector Gadget', email => 'inspector@example.org', email_verified => 1, body => $body, permissions => $perms_inspector },
+ { name => 'Harriet Helpful', email_verified => 1, email => 'cs@example.org', body => $body, permissions => $perms_cs },
+ { name => 'Super User', email_verified => 1, email => 'super@example.org', body => $body, permissions => [
@$perms_cs, @$perms_inspector, 'report_edit',
'category_edit', 'template_edit', 'responsepriority_edit',
'user_assign_body', 'user_manage_permissions', 'user_edit',
] },
- { name => 'Wizard of Oz', email => 'admin@example.org', is_superuser => 't' },
- { name => "Norma User", email => 'user@example.org' },
+ { name => 'Wizard of Oz', email_verified => 1, email => 'admin@example.org', is_superuser => 't' },
+ { name => "Norma User", email_verified => 1, email => 'user@example.org' },
) {
$users{$_->{email}} = FixMyStreet::DB::Factory::User->find_or_create($_);
my $perms = $_->{permissions} ? " (" . join(', ', @{$_->{permissions} || []}) . ")" : "";