From 4f9e2f34a9642d8f0b0f36f7637a4b40c3945ab4 Mon Sep 17 00:00:00 2001 From: Guillaume Vincent Date: Tue, 11 Oct 2016 10:07:38 +0200 Subject: [PATCH] add sugar in password object --- src/domain/password.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/domain/password.js b/src/domain/password.js index ca95ba0..3fbd494 100644 --- a/src/domain/password.js +++ b/src/domain/password.js @@ -12,4 +12,8 @@ export default class Password { }); return isNew; } + + json() { + return this.password + } }