fix: update admin email to reflect new domain in migrations and README
This commit is contained in:
@@ -36,7 +36,7 @@ has been built.
|
|||||||
|
|
||||||
Local seeded admin:
|
Local seeded admin:
|
||||||
|
|
||||||
- email: `admin@visione.gov.it`
|
- email: `admin@visionebari.it`
|
||||||
- access uses OTP email delivery and needs mail provider config.
|
- access uses OTP email delivery and needs mail provider config.
|
||||||
|
|
||||||
If you already had a MySQL volume from the old scaffold, create the local
|
If you already had a MySQL volume from the old scaffold, create the local
|
||||||
@@ -56,7 +56,7 @@ curl http://localhost:5555/api/v1/health
|
|||||||
curl http://localhost:5555/api/v1/ready
|
curl http://localhost:5555/api/v1/ready
|
||||||
curl -X POST http://localhost:5555/api/v1/auth/otp/request \
|
curl -X POST http://localhost:5555/api/v1/auth/otp/request \
|
||||||
-H 'Content-Type: application/json' \
|
-H 'Content-Type: application/json' \
|
||||||
-d '{"email":"admin@visione.gov.it"}'
|
-d '{"email":"admin@visionebari.it"}'
|
||||||
```
|
```
|
||||||
|
|
||||||
Use `-DUSE_SYSTEM_DROGON=ON` only if Drogon is already installed and
|
Use `-DUSE_SYSTEM_DROGON=ON` only if Drogon is already installed and
|
||||||
|
|||||||
@@ -226,11 +226,11 @@ INSERT IGNORE INTO users (
|
|||||||
) VALUES (
|
) VALUES (
|
||||||
'Vito',
|
'Vito',
|
||||||
'Leccese',
|
'Leccese',
|
||||||
'admin@visione.gov.it',
|
'admin@visionebari.it',
|
||||||
'LCCVTI62M02A662Q',
|
'LCCVTI62M02A662Q',
|
||||||
'380 6180216'
|
'380 6180216'
|
||||||
);
|
);
|
||||||
|
|
||||||
INSERT IGNORE INTO user_roles (user_id, role_id)
|
INSERT IGNORE INTO user_roles (user_id, role_id)
|
||||||
SELECT u.id, r.id FROM users u JOIN roles r
|
SELECT u.id, r.id FROM users u JOIN roles r
|
||||||
WHERE u.email = 'admin@visione.gov.it' AND r.name = 'admin';
|
WHERE u.email = 'admin@visionebari.it' AND r.name = 'admin';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
UPDATE users
|
UPDATE users
|
||||||
SET email = 'admin@visione.gov.it',
|
SET email = 'admin@visionebari.it',
|
||||||
first_name = 'Vito',
|
first_name = 'Vito',
|
||||||
last_name = 'Leccese',
|
last_name = 'Leccese',
|
||||||
fiscal_code = 'LCCVTI62M02A662Q',
|
fiscal_code = 'LCCVTI62M02A662Q',
|
||||||
phone = '380 6180216'
|
phone = '380 6180216'
|
||||||
WHERE email IN ('admin@visione.local', '[email protected].it');
|
WHERE email = 'admin@visionebari.it';
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
UPDATE users
|
UPDATE users
|
||||||
SET email = 'admin@visione.gov.it',
|
SET email = 'admin@visionebari.it',
|
||||||
first_name = 'Vito',
|
first_name = 'Vito',
|
||||||
last_name = 'Leccese',
|
last_name = 'Leccese',
|
||||||
fiscal_code = 'LCCVTI62M02A662Q',
|
fiscal_code = 'LCCVTI62M02A662Q',
|
||||||
phone = '380 6180216'
|
phone = '380 6180216'
|
||||||
WHERE email IN ('admin@visione.local', '[email protected].it');
|
WHERE email = 'admin@visionebari.it';
|
||||||
|
|||||||
Reference in New Issue
Block a user