4077-login_recover-password & account_verifyEmail #1063

Merged
alexm merged 52 commits from 4077-login_recover-password into dev 2022-11-28 11:34:03 +00:00
3 changed files with 0 additions and 26 deletions
Showing only changes of commit a9a20758bd - Show all commits

View File

@ -1,26 +1,6 @@
const models = require('vn-loopback/server/server').models;
const LoopBackContext = require('loopback-context');
describe('loopback model Account', () => {
const userId = 1105;
const activeCtx = {
accessToken: {userId: userId},
http: {
req: {
headers: {origin: 'http://localhost'},
[`__`]: value => {
return value;
}
}
}
};
beforeEach(() => {
spyOn(LoopBackContext, 'getCurrentContext').and.returnValue({
active: activeCtx
});
});
it('should return true if the user has the given role', async() => {
let result = await models.Account.hasRole(1, 'employee');

View File

@ -1,3 +0,0 @@
<p>
Click <a href="<%=verifyHref%>">here</a> to confirm your email address.
</p>

View File

@ -1,3 +0,0 @@
<p>
Click <a href="<%=verifyHref%>">here</a> to confirm your email address.
</p>