Use mailcatcher for minimal config setup.

This commit is contained in:
Clement Michaud 2018-11-15 22:28:29 +01:00
parent 43102d9fae
commit 9a0e5290d1
5 changed files with 14 additions and 14 deletions

View File

@ -86,8 +86,8 @@ regulation:
notifier: notifier:
# For testing purpose, notifications can be sent in a file # For testing purpose, notifications can be sent in a file
filesystem: # filesystem:
filename: /tmp/authelia/notification.txt # filename: /tmp/authelia/notification.txt
# Use your email account to send the notifications. You can use an app password. # Use your email account to send the notifications. You can use an app password.
# List of valid services can be found here: https://nodemailer.com/smtp/well-known/ # List of valid services can be found here: https://nodemailer.com/smtp/well-known/
@ -98,11 +98,11 @@ notifier:
## service: gmail ## service: gmail
# Use a SMTP server for sending notifications # Use a SMTP server for sending notifications
#smtp: smtp:
# username: test username: test
# password: password password: password
# secure: false secure: false
# host: 'smtp' host: 'smtp'
# port: 1025 port: 1025
# sender: admin@example.com sender: admin@example.com

View File

@ -1,5 +1,5 @@
import Bluebird = require("bluebird"); import Bluebird = require("bluebird");
import loginAndRegisterTotp from "../helpers/login-and-register-totp"; import LoginAndRegisterTotp from "../helpers/login-and-register-totp";
import VisitPage from "../helpers/visit-page"; import VisitPage from "../helpers/visit-page";
import FillLoginPageWithUserAndPasswordAndClick from "../helpers/fill-login-page-and-click"; import FillLoginPageWithUserAndPasswordAndClick from "../helpers/fill-login-page-and-click";
import WithDriver from "../helpers/with-driver"; import WithDriver from "../helpers/with-driver";
@ -12,7 +12,7 @@ describe("Keep me logged in", function() {
before(function() { before(function() {
const that = this; const that = this;
return loginAndRegisterTotp(this.driver, "john") return LoginAndRegisterTotp(this.driver, "john", true)
.then(function(secret: string) { .then(function(secret: string) {
that.secret = secret; that.secret = secret;
if(!secret) return Bluebird.reject(new Error("No secret!")); if(!secret) return Bluebird.reject(new Error("No secret!"));

View File

@ -25,7 +25,7 @@ describe('Fail TOTP challenge', function() {
describe('successfully login as john', function() { describe('successfully login as john', function() {
before(function() { before(function() {
const that = this; const that = this;
return LoginAndRegisterTotp(this.driver, "john"); return LoginAndRegisterTotp(this.driver, "john", true);
}); });
describe('fail second factor', function() { describe('fail second factor', function() {

View File

@ -14,7 +14,7 @@ describe('Registering TOTP', function() {
describe('successfully login as john', function() { describe('successfully login as john', function() {
before('register successfully', function() { before('register successfully', function() {
this.timeout(10000); this.timeout(10000);
return LoginAndRegisterTotp(this.driver, "john"); return LoginAndRegisterTotp(this.driver, "john", true);
}) })
it("should see generated qrcode", function() { it("should see generated qrcode", function() {

View File

@ -24,7 +24,7 @@ describe('Validate TOTP factor', function() {
describe('successfully login as john', function() { describe('successfully login as john', function() {
before(function() { before(function() {
const that = this; const that = this;
return LoginAndRegisterTotp(this.driver, "john") return LoginAndRegisterTotp(this.driver, "john", true)
.then(function(secret: string) { .then(function(secret: string) {
that.secret = secret; that.secret = secret;
}) })