Skip to content

Commit d0d1cf3

Browse files
Shane Kilkellykingcody
Shane Kilkelly
authored andcommitted
refactor(data): Change seed user account emails to example.com
Privately registered domain names such as admin.com should not be used in seed or test data. Change the email address of the 'test' and 'admin' user accounts to '[email protected]' and '[email protected]' respectively.
1 parent 4f4543e commit d0d1cf3

12 files changed

+16
-16
lines changed

Diff for: app/templates/client/app/account(auth)/login/login(html).html

+2-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<div class="row">
55
<div class="col-sm-12">
66
<h1>Login</h1>
7-
<p>Accounts are reset on server restart from <code>server/config/seed.js</code>. Default account is <code>test@test.com</code> / <code>test</code></p>
8-
<p>Admin account is <code>admin@admin.com</code> / <code>admin</code></p>
7+
<p>Accounts are reset on server restart from <code>server/config/seed.js</code>. Default account is <code>test@example.com</code> / <code>test</code></p>
8+
<p>Admin account is <code>admin@example.com</code> / <code>admin</code></p>
99
</div>
1010
<div class="col-sm-12">
1111
<form class="form" name="form" ng-submit="login(form)" novalidate>

Diff for: app/templates/client/app/account(auth)/login/login(jade).jade

+2-2
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,12 @@ navbar
77
| Accounts are reset on server restart from
88
code server/config/seed.js
99
| . Default account is
10-
code test@test.com
10+
code test@example.com
1111
| /
1212
code test
1313
p
1414
| Admin account is
15-
code admin@admin.com
15+
code admin@example.com
1616
| /
1717
code admin
1818

Diff for: app/templates/e2e/account(auth)/login/login.spec(jasmine).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('Login View', function() {
1414

1515
var testUser = {
1616
name: 'Test User',
17-
email: 'test@test.com',
17+
email: 'test@example.com',
1818
password: 'test'
1919
};
2020

Diff for: app/templates/e2e/account(auth)/login/login.spec(mocha).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ describe('Login View', function() {
1414

1515
var testUser = {
1616
name: 'Test User',
17-
email: 'test@test.com',
17+
email: 'test@example.com',
1818
password: 'test'
1919
};
2020

Diff for: app/templates/e2e/account(auth)/logout/logout.spec(jasmine).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Logout View', function() {
1212

1313
var testUser = {
1414
name: 'Test User',
15-
email: 'test@test.com',
15+
email: 'test@example.com',
1616
password: 'test'
1717
};
1818

Diff for: app/templates/e2e/account(auth)/logout/logout.spec(mocha).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('Logout View', function() {
1212

1313
var testUser = {
1414
name: 'Test User',
15-
email: 'test@test.com',
15+
email: 'test@example.com',
1616
password: 'test'
1717
};
1818

Diff for: app/templates/e2e/account(auth)/signup/signup.spec(jasmine).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('Signup View', function() {
1515

1616
var testUser = {
1717
name: 'Test',
18-
email: 'test@test.com',
18+
email: 'test@example.com',
1919
password: 'test'
2020
};
2121

Diff for: app/templates/e2e/account(auth)/signup/signup.spec(mocha).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('Signup View', function() {
1515

1616
var testUser = {
1717
name: 'Test',
18-
email: 'test@test.com',
18+
email: 'test@example.com',
1919
password: 'test'
2020
};
2121

Diff for: app/templates/server/api/user(auth)/user.integration.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ describe('User API:', function() {
1515
<% if (filters.mongooseModels) { %>user = new User({<% }
1616
if (filters.sequelizeModels) { %>user = User.build({<% } %>
1717
name: 'Fake User',
18-
email: 'test@test.com',
18+
email: 'test@example.com',
1919
password: 'password'
2020
});
2121

@@ -37,7 +37,7 @@ describe('User API:', function() {
3737
request(app)
3838
.post('/auth/local')
3939
.send({
40-
email: 'test@test.com',
40+
email: 'test@example.com',
4141
password: 'password'
4242
})
4343
.expect(200)

Diff for: app/templates/server/api/user(auth)/user.model.spec(mongooseModels).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var genUser = function() {
77
user = new User({
88
provider: 'local',
99
name: 'Fake User',
10-
email: 'test@test.com',
10+
email: 'test@example.com',
1111
password: 'password'
1212
});
1313
return user;

Diff for: app/templates/server/api/user(auth)/user.model.spec(sequelizeModels).js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ var genUser = function() {
77
user = User.build({
88
provider: 'local',
99
name: 'Fake User',
10-
email: 'test@test.com',
10+
email: 'test@example.com',
1111
password: 'password'
1212
});
1313
return user;

Diff for: app/templates/server/config/seed(models).js

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,13 +60,13 @@ var Thing = sqldb.Thing;
6060
if (filters.sequelizeModels) { %>User.bulkCreate([{<% } %>
6161
provider: 'local',
6262
name: 'Test User',
63-
email: 'test@test.com',
63+
email: 'test@example.com',
6464
password: 'test'
6565
}, {
6666
provider: 'local',
6767
role: 'admin',
6868
name: 'Admin',
69-
email: 'admin@admin.com',
69+
email: 'admin@example.com',
7070
password: 'admin'
7171
<% if (filters.mongooseModels) { %>})<% }
7272
if (filters.sequelizeModels) { %>}])<% } %>

0 commit comments

Comments
 (0)