#6427 - SMS Recover Password #2037
|
@ -316,7 +316,7 @@ INSERT INTO mysql.roles_mapping (`User`, `Host`, `Role`, `Admin_option`)
|
||||||
WHERE `User` LIKE @prefixedLike AND `Host` = @genRoleHost;
|
WHERE `User` LIKE @prefixedLike AND `Host` = @genRoleHost;
|
||||||
|
|
||||||
-- Actualiza los valores de la nueva columna con los valores correspondientes de la tabla userInfo
|
-- Actualiza los valores de la nueva columna con los valores correspondientes de la tabla userInfo
|
||||||
UPDATE `account`.`user` as `user`
|
UPDATE `account`.`user` as `user`
|
||||||
JOIN vn.client `client` ON `user`.id = `client`.id
|
JOIN vn.client `client` ON `user`.id = `client`.id
|
||||||
SET `user`.recoveryPhone = `client`.phone;
|
SET `user`.recoveryPhone = `client`.phone;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
|
|
||||||
-- Actualiza los valores de la nueva columna con los valores correspondientes de la tabla userInfo
|
-- Actualiza los valores de la nueva columna con los valores correspondientes de la tabla userInfo
|
||||||
UPDATE `account`.`user` as `user`
|
UPDATE `account`.`user` as `user`
|
||||||
JOIN vn.client `client` ON `user`.id = `client`.id
|
JOIN vn.client `client` ON `user`.id = `client`.id
|
||||||
SET `user`.recoveryPhone = `client`.phone;
|
SET `user`.recoveryPhone = `client`.phone;
|
||||||
|
|
|
@ -37,7 +37,6 @@ export default {
|
||||||
sendEmailButton: 'vn-recover-password vn-submit',
|
sendEmailButton: 'vn-recover-password vn-submit',
|
||||||
smsOption: 'vn-recover-password vn-radio[val="sms"]',
|
smsOption: 'vn-recover-password vn-radio[val="sms"]',
|
||||||
emailOption: 'vn-recover-password vn-radio[val="email"]',
|
emailOption: 'vn-recover-password vn-radio[val="email"]',
|
||||||
|
|
||||||
},
|
},
|
||||||
accountIndex: {
|
accountIndex: {
|
||||||
addAccount: 'vn-user-index button vn-icon[icon="add"]',
|
addAccount: 'vn-user-index button vn-icon[icon="add"]',
|
||||||
|
|
|
@ -8,7 +8,6 @@ describe('RecoverPassword path', async() => {
|
||||||
beforeAll(async() => {
|
beforeAll(async() => {
|
||||||
browser = await getBrowser();
|
browser = await getBrowser();
|
||||||
page = browser.page;
|
page = browser.page;
|
||||||
await page.setRequestInterception(true);
|
|
||||||
});
|
});
|
||||||
|
|
||||||
beforeEach(async() => {
|
beforeEach(async() => {
|
||||||
|
@ -65,6 +64,8 @@ describe('RecoverPassword path', async() => {
|
||||||
});
|
});
|
||||||
|
|
||||||
it('should send sms using username', async() => {
|
it('should send sms using username', async() => {
|
||||||
|
await page.setRequestInterception(true);
|
||||||
|
|
||||||
await page.write(selectors.recoverPassword.email, 'BruceWayne');
|
await page.write(selectors.recoverPassword.email, 'BruceWayne');
|
||||||
await page.waitToClick(selectors.recoverPassword.smsOption);
|
await page.waitToClick(selectors.recoverPassword.smsOption);
|
||||||
page.on('request', request => {
|
page.on('request', request => {
|
||||||
|
|
17
e2e/tests.js
17
e2e/tests.js
|
@ -23,8 +23,8 @@ async function test() {
|
||||||
const opts = getopts(process.argv.slice(2), {
|
const opts = getopts(process.argv.slice(2), {
|
||||||
boolean: ['show']
|
boolean: ['show']
|
||||||
});
|
});
|
||||||
// if (opts.show)
|
if (opts.show)
|
||||||
process.env.E2E_SHOW = true;
|
process.env.E2E_SHOW = true;
|
||||||
|
|
||||||
console.log('Building and running DB container.');
|
console.log('Building and running DB container.');
|
||||||
const myt = new Myt();
|
const myt = new Myt();
|
||||||
|
@ -37,6 +37,19 @@ async function test() {
|
||||||
|
|
||||||
const specFiles = [
|
const specFiles = [
|
||||||
`./e2e/paths/01*/*[sS]pec.js`,
|
`./e2e/paths/01*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/02*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/03*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/04*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/05*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/06*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/07*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/08*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/09*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/10*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/11*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/12*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/13*/*[sS]pec.js`,
|
||||||
|
`./e2e/paths/**/*[sS]pec.js`
|
||||||
];
|
];
|
||||||
|
|
||||||
jasmine.loadConfig({
|
jasmine.loadConfig({
|
||||||
|
|
|
@ -36,7 +36,7 @@
|
||||||
<span ng-if="$ctrl.method ==='sms'" translate>
|
<span ng-if="$ctrl.method ==='sms'" translate>
|
||||||
We will sent you a sms to recover your password
|
We will sent you a sms to recover your password
|
||||||
</span>
|
</span>
|
||||||
<span ng-if="$ctrl.method ==='email' " translate>
|
<span ng-if="$ctrl.method ==='email'" translate>
|
||||||
We will sent you an email to recover your password
|
We will sent you an email to recover your password
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,2 +0,0 @@
|
||||||
|
|
||||||
We will sent you a item to recover your password: We will sent you a {{mode}} to recover your password
|
|
|
@ -1,7 +1,6 @@
|
||||||
Recover password: Recuperar contraseña
|
Recover password: Recuperar contraseña
|
||||||
We will sent you an email to recover your password: Te enviaremos un correo para restablecer tu contraseña
|
We will sent you an email to recover your password: Te enviaremos un correo para restablecer tu contraseña
|
||||||
We will sent you a sms to recover your password: Te enviaremos un sms para restablecer tu contraseña
|
We will sent you a sms to recover your password: Te enviaremos un sms para restablecer tu contraseña
|
||||||
We will sent you a item to recover your password: Te enviaremos un {{mode}} para restablecer tu contraseña
|
|
||||||
Notification sent!: ¡Notificación enviada!
|
Notification sent!: ¡Notificación enviada!
|
||||||
User or recovery email: Usuario
|
User or recovery email: Usuario
|
||||||
User's phone: Móvil del usuario
|
User's phone: Móvil del usuario
|
||||||
|
|
|
@ -32,7 +32,6 @@
|
||||||
label="Recovery phone"
|
label="Recovery phone"
|
||||||
ng-model="$ctrl.user.recoveryPhone"
|
ng-model="$ctrl.user.recoveryPhone"
|
||||||
disabled="$root.user.id !== $ctrl.user.id"
|
disabled="$root.user.id !== $ctrl.user.id"
|
||||||
|
|
||||||
>
|
>
|
||||||
</vn-textfield>
|
</vn-textfield>
|
||||||
<vn-autocomplete
|
<vn-autocomplete
|
||||||
|
|
Loading…
Reference in New Issue