Refactors verify_email, adds public html
This commit is contained in:
@@ -10,11 +10,13 @@ based on the parameters passed
|
||||
|
||||
// _adapter is private, use Symbol
|
||||
var _adapter = Symbol();
|
||||
import cache from '../cache';
|
||||
|
||||
export class AdaptableController {
|
||||
|
||||
constructor(adapter) {
|
||||
constructor(adapter, appId) {
|
||||
this.adapter = adapter;
|
||||
this.appId = appId;
|
||||
}
|
||||
|
||||
set adapter(adapter) {
|
||||
@@ -26,6 +28,10 @@ export class AdaptableController {
|
||||
return this[_adapter];
|
||||
}
|
||||
|
||||
get config() {
|
||||
return cache.apps[this.appId];
|
||||
}
|
||||
|
||||
expectedAdapterType() {
|
||||
throw new Error("Subclasses should implement expectedAdapterType()");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user