mirror of
https://github.com/documize/community.git
synced 2025-08-09 07:25:23 +02:00
Add restore method to anonymous authenticator
This commit is contained in:
parent
d1714db6f8
commit
8a4d0f7e70
2 changed files with 4 additions and 0 deletions
|
@ -6,6 +6,9 @@ const {
|
||||||
} = Ember;
|
} = Ember;
|
||||||
|
|
||||||
export default Base.extend({
|
export default Base.extend({
|
||||||
|
restore(data) {
|
||||||
|
return resolve(data);
|
||||||
|
},
|
||||||
authenticate(data) {
|
authenticate(data) {
|
||||||
return resolve(data);
|
return resolve(data);
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,6 +24,7 @@ export default Base.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
authenticate({password, email}) {
|
authenticate({password, email}) {
|
||||||
|
debugger;
|
||||||
let domain = netUtil.getSubdomain();
|
let domain = netUtil.getSubdomain();
|
||||||
|
|
||||||
if (!isPresent(password) || !isPresent(email)) {
|
if (!isPresent(password) || !isPresent(email)) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue