chyz 1.0.13-rc.3 → 1.0.13-rc.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{dist/BaseChyz.js → BaseChyz.js} +0 -0
- package/{dist/BaseChyz.js.map → BaseChyz.js.map} +0 -0
- package/{dist/Chyz.js → Chyz.js} +0 -0
- package/{dist/Chyz.js.map → Chyz.js.map} +0 -0
- package/{dist/base → base}/ActionFilter.js +0 -0
- package/{dist/base → base}/ActionFilter.js.map +0 -0
- package/{dist/base → base}/BaseError.js +0 -0
- package/{dist/base → base}/BaseError.js.map +0 -0
- package/{dist/base → base}/BaseObject.js +0 -0
- package/{dist/base → base}/BaseObject.js.map +0 -0
- package/{dist/base → base}/Behavior.js +0 -0
- package/{dist/base → base}/Behavior.js.map +0 -0
- package/{dist/base → base}/Component.js +0 -0
- package/{dist/base → base}/Component.js.map +0 -0
- package/{dist/base → base}/Configurable.js +0 -0
- package/{dist/base → base}/Configurable.js.map +0 -0
- package/{dist/base → base}/Controller.js +0 -0
- package/{dist/base → base}/Controller.js.map +0 -0
- package/{dist/base → base}/DataErrorDbException.js +0 -0
- package/{dist/base → base}/DataErrorDbException.js.map +0 -0
- package/{dist/base → base}/DbConnection.js +0 -0
- package/{dist/base → base}/DbConnection.js.map +0 -0
- package/{dist/base → base}/ForbiddenHttpException.js +0 -0
- package/{dist/base → base}/ForbiddenHttpException.js.map +0 -0
- package/{dist/base → base}/InvalidConfigException.js +0 -0
- package/{dist/base → base}/InvalidConfigException.js.map +0 -0
- package/{dist/base → base}/Model.js +0 -0
- package/{dist/base → base}/Model.js.map +0 -0
- package/{dist/base → base}/NotFoundHttpException.js +0 -0
- package/{dist/base → base}/NotFoundHttpException.js.map +0 -0
- package/{dist/base → base}/RestClient.js +0 -0
- package/{dist/base → base}/RestClient.js.map +0 -0
- package/{dist/base → base}/UnauthorizedHttpException.js +0 -0
- package/{dist/base → base}/UnauthorizedHttpException.js.map +0 -0
- package/{dist/base → base}/ValidationHttpException.js +0 -0
- package/{dist/base → base}/ValidationHttpException.js.map +0 -0
- package/{dist/base → base}/db/Exception.js +0 -0
- package/{dist/base → base}/db/Exception.js.map +0 -0
- package/{dist/base → base}/index.js +0 -0
- package/{dist/base → base}/index.js.map +0 -0
- package/{dist/decorator → decorator}/Middleware.js +0 -0
- package/{dist/decorator → decorator}/Middleware.js.map +0 -0
- package/{dist/decorator → decorator}/controller.js +0 -0
- package/{dist/decorator → decorator}/controller.js.map +0 -0
- package/{dist/decorator → decorator}/enums/ControllerDecoratorParams.js +0 -0
- package/{dist/decorator → decorator}/enums/ControllerDecoratorParams.js.map +0 -0
- package/{dist/decorator → decorator}/get.js +0 -0
- package/{dist/decorator → decorator}/get.js.map +0 -0
- package/{dist/decorator → decorator}/index.js +0 -0
- package/{dist/decorator → decorator}/index.js.map +0 -0
- package/{dist/decorator → decorator}/post.js +0 -0
- package/{dist/decorator → decorator}/post.js.map +0 -0
- package/{dist/filters → filters}/AccessControl.js +0 -0
- package/{dist/filters → filters}/AccessControl.js.map +0 -0
- package/{dist/filters → filters}/AccessRule.js +0 -0
- package/{dist/filters → filters}/AccessRule.js.map +0 -0
- package/{dist/filters → filters}/auth/AuthInterface.js +0 -0
- package/{dist/filters → filters}/auth/AuthInterface.js.map +0 -0
- package/{dist/filters → filters}/auth/AuthMethod.js +0 -0
- package/{dist/filters → filters}/auth/AuthMethod.js.map +0 -0
- package/{dist/filters → filters}/auth/HttpBasicAuth.js +0 -0
- package/{dist/filters → filters}/auth/HttpBasicAuth.js.map +0 -0
- package/{dist/filters → filters}/auth/HttpBearerAuth.js +0 -0
- package/{dist/filters → filters}/auth/HttpBearerAuth.js.map +0 -0
- package/{dist/filters → filters}/auth/HttpHeaderAuth.js +0 -0
- package/{dist/filters → filters}/auth/HttpHeaderAuth.js.map +0 -0
- package/{dist/filters → filters}/auth/JwtHttpBearerAuth.js +0 -0
- package/{dist/filters → filters}/auth/JwtHttpBearerAuth.js.map +0 -0
- package/{dist/filters → filters}/auth/KeyCloakHttpBearerAuth.js +0 -0
- package/{dist/filters → filters}/auth/KeyCloakHttpBearerAuth.js.map +0 -0
- package/{dist/filters → filters}/auth/index.js +0 -0
- package/{dist/filters → filters}/auth/index.js.map +0 -0
- package/{dist/filters → filters}/index.js +0 -0
- package/{dist/filters → filters}/index.js.map +0 -0
- package/{dist/index.js → index.js} +0 -0
- package/{dist/index.js.map → index.js.map} +0 -0
- package/{dist/model → model}/RouteDefinition.js +0 -0
- package/{dist/model → model}/RouteDefinition.js.map +0 -0
- package/package.json +1 -1
- package/{dist/requiments → requiments}/Glob.js +0 -0
- package/{dist/requiments → requiments}/Glob.js.map +0 -0
- package/{dist/requiments → requiments}/ReflectUtil.js +0 -0
- package/{dist/requiments → requiments}/ReflectUtil.js.map +0 -0
- package/{dist/requiments → requiments}/Utils.js +0 -0
- package/{dist/requiments → requiments}/Utils.js.map +0 -0
- package/{dist/validators → validators}/BooleanValidator.js +0 -0
- package/{dist/validators → validators}/BooleanValidator.js.map +0 -0
- package/{dist/validators → validators}/CompareValidator.js +0 -0
- package/{dist/validators → validators}/CompareValidator.js.map +0 -0
- package/{dist/validators → validators}/DateValidator.js +0 -0
- package/{dist/validators → validators}/DateValidator.js.map +0 -0
- package/{dist/validators → validators}/EmailValidator.js +0 -0
- package/{dist/validators → validators}/EmailValidator.js.map +0 -0
- package/{dist/validators → validators}/Validator.js +0 -0
- package/{dist/validators → validators}/Validator.js.map +0 -0
- package/{dist/web → web}/IdentityInterface.js +0 -0
- package/{dist/web → web}/IdentityInterface.js.map +0 -0
- package/{dist/web → web}/WebUser.js +0 -0
- package/{dist/web → web}/WebUser.js.map +0 -0
- package/BaseChyz.ts +0 -361
- package/Chyz.ts +0 -11
- package/Examples/Controllers/ApiController.ts +0 -131
- package/Examples/Controllers/KeyCloakController.ts +0 -100
- package/Examples/Controllers/PublicController.ts +0 -42
- package/Examples/Controllers/SiteController.ts +0 -139
- package/Examples/Models/Categories.ts +0 -36
- package/Examples/Models/Customer.ts +0 -115
- package/Examples/Models/KeycloakUser.ts +0 -66
- package/Examples/Models/Order.ts +0 -64
- package/Examples/Models/OrderItem.ts +0 -27
- package/Examples/Models/ProductModels.ts +0 -50
- package/Examples/Models/ProductToCategories.ts +0 -35
- package/Examples/Models/Products.ts +0 -49
- package/Examples/Models/Stocks.ts +0 -60
- package/Examples/Models/User.ts +0 -100
- package/Examples/Models/UserPermission.ts +0 -37
- package/Examples/index-keycloack.ts +0 -78
- package/Examples/index.ts +0 -39
- package/Examples/keycloak.json +0 -7
- package/Examples/log/access.log +0 -0
- package/Examples/log/app.log +0 -923
- package/Examples/log/errors.log +0 -80
- package/Examples/package.json +0 -46
- package/Examples/tsconfig.json +0 -20
- package/base/ActionFilter.ts +0 -71
- package/base/BaseError.ts +0 -26
- package/base/BaseObject.ts +0 -19
- package/base/Behavior.ts +0 -6
- package/base/Component.ts +0 -66
- package/base/Configurable.ts +0 -10
- package/base/Controller.ts +0 -84
- package/base/DataErrorDbException.ts +0 -16
- package/base/DbConnection.ts +0 -51
- package/base/ForbiddenHttpException.ts +0 -15
- package/base/InvalidConfigException.ts +0 -16
- package/base/Model.ts +0 -354
- package/base/NotFoundHttpException.ts +0 -14
- package/base/RestClient.ts +0 -28
- package/base/UnauthorizedHttpException.ts +0 -17
- package/base/ValidationHttpException.ts +0 -14
- package/base/db/Exception.ts +0 -14
- package/base/index.ts +0 -16
- package/decorator/Middleware.ts +0 -9
- package/decorator/controller.ts +0 -22
- package/decorator/enums/ControllerDecoratorParams.ts +0 -5
- package/decorator/get.ts +0 -37
- package/decorator/index.ts +0 -3
- package/decorator/post.ts +0 -36
- package/dist/README.md +0 -270
- package/dist/log/config/log4js.json +0 -55
- package/dist/package.json +0 -55
- package/filters/AccessControl.ts +0 -64
- package/filters/AccessRule.ts +0 -137
- package/filters/auth/AuthInterface.ts +0 -34
- package/filters/auth/AuthMethod.ts +0 -88
- package/filters/auth/HttpBasicAuth.ts +0 -7
- package/filters/auth/HttpBearerAuth.ts +0 -31
- package/filters/auth/HttpHeaderAuth.ts +0 -53
- package/filters/auth/JwtHttpBearerAuth.ts +0 -80
- package/filters/auth/KeyCloakHttpBearerAuth.ts +0 -115
- package/filters/auth/index.ts +0 -3
- package/filters/index.ts +0 -2
- package/index.ts +0 -14
- package/model/RouteDefinition.ts +0 -18
- package/package-lock.json +0 -5259
- package/requiments/Glob.ts +0 -9
- package/requiments/ReflectUtil.ts +0 -26
- package/requiments/Utils.ts +0 -57
- package/tsconfig.json +0 -18
- package/validators/BooleanValidator.ts +0 -0
- package/validators/CompareValidator.ts +0 -0
- package/validators/DateValidator.ts +0 -0
- package/validators/EmailValidator.ts +0 -0
- package/validators/Validator.ts +0 -27
- package/web/IdentityInterface.ts +0 -62
- package/web/WebUser.ts +0 -100
package/requiments/Glob.ts
DELETED
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
3
|
-
* Author: Cihan Ozturk
|
|
4
|
-
* E-mail: cihan@chy.com.tr
|
|
5
|
-
* Github:https://github.com/cihan53/
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
/**
|
|
9
|
-
* @param strClass:
|
|
10
|
-
* class name
|
|
11
|
-
* @param optionals:
|
|
12
|
-
* constructor arguments
|
|
13
|
-
*/
|
|
14
|
-
// @ts-ignore
|
|
15
|
-
Reflect.newInstance = function (strClass: string) {
|
|
16
|
-
var args = Array.prototype.slice.call(arguments, 1);
|
|
17
|
-
var clsClass = eval(strClass);
|
|
18
|
-
|
|
19
|
-
const F = () => {
|
|
20
|
-
return clsClass.apply(this, args);
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
F.prototype = clsClass.prototype;
|
|
24
|
-
// @ts-ignore
|
|
25
|
-
return new F();
|
|
26
|
-
};
|
package/requiments/Utils.ts
DELETED
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
3
|
-
* Author: Cihan Ozturk
|
|
4
|
-
* E-mail: cihan@chy.com.tr
|
|
5
|
-
* Github:https://github.com/cihan53/
|
|
6
|
-
*/
|
|
7
|
-
// import _ from "lodash";
|
|
8
|
-
import {Utils} from "sequelize";
|
|
9
|
-
|
|
10
|
-
const _ = require('lodash');
|
|
11
|
-
|
|
12
|
-
const createObject = (object: any, params: any) => {
|
|
13
|
-
let newParams: any = {}
|
|
14
|
-
Object.keys(params).forEach((param) => {
|
|
15
|
-
newParams[param] = {}
|
|
16
|
-
Object.assign(newParams[param], {
|
|
17
|
-
writable: true,
|
|
18
|
-
configurable: true,
|
|
19
|
-
value: params[param]
|
|
20
|
-
});
|
|
21
|
-
})
|
|
22
|
-
return Object.create(object, newParams);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
const findKeyValue = (object: any, findKey: string) => {
|
|
26
|
-
let key = Object.keys(object).find(key => key.toLowerCase() === findKey.toLowerCase())
|
|
27
|
-
if (key) {
|
|
28
|
-
return object[key];
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
return null
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
const sleep = (seconds = 1) => {
|
|
36
|
-
var waitTill = new Date(new Date().getTime() + seconds * 1000);
|
|
37
|
-
while (waitTill > new Date()) {
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
function wildTest(wildcard: string, str: string) {
|
|
43
|
-
let w = wildcard.replace(/[.+^${}()|[\]\\]/g, '\\$&'); // regexp escape
|
|
44
|
-
const re = new RegExp(`^${w.replace(/\*/g,'.*').replace(/\?/g,'.')}$`, 'i');
|
|
45
|
-
return re.test(str); // remove last 'i' above to have case sensitive
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
const matchWildcard = (pattern: string, string: string, options: any = {}) => {
|
|
49
|
-
return wildTest(pattern, string)
|
|
50
|
-
}
|
|
51
|
-
export default {
|
|
52
|
-
createObject,
|
|
53
|
-
findKeyValue,
|
|
54
|
-
sleep,
|
|
55
|
-
matchWildcard,
|
|
56
|
-
..._
|
|
57
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"module": "commonjs",
|
|
4
|
-
"target": "es6",
|
|
5
|
-
"sourceMap": true,
|
|
6
|
-
"strict": true,
|
|
7
|
-
"outDir": "dist",
|
|
8
|
-
"resolveJsonModule": true,
|
|
9
|
-
"emitDecoratorMetadata": true,
|
|
10
|
-
"esModuleInterop": true,
|
|
11
|
-
"experimentalDecorators": true,
|
|
12
|
-
"forceConsistentCasingInFileNames": true /* Disallow inconsistently-cased references to the same file. */
|
|
13
|
-
},
|
|
14
|
-
"exclude": [
|
|
15
|
-
"node_modules",
|
|
16
|
-
"**/Examples/*"
|
|
17
|
-
]
|
|
18
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
package/validators/Validator.ts
DELETED
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import {Component} from "../base";
|
|
2
|
-
|
|
3
|
-
export class Validator extends Component {
|
|
4
|
-
public static builtInValidators = {
|
|
5
|
-
'boolean': '',
|
|
6
|
-
'email': '',
|
|
7
|
-
}
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
/**
|
|
11
|
-
* @var array|string attributes to be validated by this validator. For multiple attributes,
|
|
12
|
-
* please specify them as an array; for single attribute, you may use either a string or an array.
|
|
13
|
-
*/
|
|
14
|
-
public attributes = [];
|
|
15
|
-
public message: string = "";
|
|
16
|
-
|
|
17
|
-
public except = [];
|
|
18
|
-
public isEmpty = [];
|
|
19
|
-
|
|
20
|
-
public init() {
|
|
21
|
-
super.init();
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
public static createValidator(type: any, model: any, attributes: any, params = []) {
|
|
25
|
-
|
|
26
|
-
}
|
|
27
|
-
}
|
package/web/IdentityInterface.ts
DELETED
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
3
|
-
* Author: Cihan Ozturk
|
|
4
|
-
* E-mail: cihan@chy.com.tr
|
|
5
|
-
* Github:https://github.com/cihan53/
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
export interface IdentityInterface {
|
|
9
|
-
/**
|
|
10
|
-
* Finds an identity by the given ID.
|
|
11
|
-
* @param string|int $id the ID to be looked for
|
|
12
|
-
* @return IdentityInterface|null the identity object that matches the given ID.
|
|
13
|
-
* Null should be returned if such an identity cannot be found
|
|
14
|
-
* or the identity is not in an active state (disabled, deleted, etc.)
|
|
15
|
-
*/
|
|
16
|
-
findIdentity(id: number): any
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* Finds an identity by the given token.
|
|
20
|
-
* For example, [[\yii\filters\auth\HttpBearerAuth]] will set this parameter to be `yii\filters\auth\HttpBearerAuth`.
|
|
21
|
-
* @return IdentityInterface|null the identity object that matches the given token.
|
|
22
|
-
* Null should be returned if such an identity cannot be found
|
|
23
|
-
* or the identity is not in an active state (disabled, deleted, etc.)
|
|
24
|
-
* @param token
|
|
25
|
-
* @param type
|
|
26
|
-
*/
|
|
27
|
-
findIdentityByAccessToken(token: any, type: string): any;
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Returns an ID that can uniquely identify a user identity.
|
|
31
|
-
* @return string|int an ID that uniquely identifies a user identity.
|
|
32
|
-
*/
|
|
33
|
-
getId(): number;
|
|
34
|
-
|
|
35
|
-
/**
|
|
36
|
-
* Returns a key that can be used to check the validity of a given identity ID.
|
|
37
|
-
*
|
|
38
|
-
* The key should be unique for each individual user, and should be persistent
|
|
39
|
-
* so that it can be used to check the validity of the user identity.
|
|
40
|
-
*
|
|
41
|
-
* The space of such keys should be big enough to defeat potential identity attacks.
|
|
42
|
-
*
|
|
43
|
-
* The returned key is used to validate session and auto-login (if [[User::enableAutoLogin]] is enabled).
|
|
44
|
-
*
|
|
45
|
-
* Make sure to invalidate earlier issued authKeys when you implement force user logout, password change and
|
|
46
|
-
* other scenarios, that require forceful access revocation for old sessions.
|
|
47
|
-
*
|
|
48
|
-
* @return string|null a key that is used to check the validity of a given identity ID.
|
|
49
|
-
* @see validateAuthKey()
|
|
50
|
-
*/
|
|
51
|
-
getAuthKey(): string;
|
|
52
|
-
|
|
53
|
-
/**
|
|
54
|
-
* Validates the given auth key.
|
|
55
|
-
*
|
|
56
|
-
* @param string $authKey the given auth key
|
|
57
|
-
* @return bool|null whether the given auth key is valid.
|
|
58
|
-
* @see getAuthKey()
|
|
59
|
-
*/
|
|
60
|
-
validateAuthKey(authKey: string): (boolean | null);
|
|
61
|
-
|
|
62
|
-
}
|
package/web/WebUser.ts
DELETED
|
@@ -1,100 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2021. Chy Bilgisayar Bilisim
|
|
3
|
-
* Author: Cihan Ozturk
|
|
4
|
-
* E-mail: cihan@chy.com.tr
|
|
5
|
-
* Github:https://github.com/cihan53/
|
|
6
|
-
*/
|
|
7
|
-
import BaseChyz from "../BaseChyz";
|
|
8
|
-
import {Component} from "../base/Component";
|
|
9
|
-
import {ForbiddenHttpException} from "../base/ForbiddenHttpException";
|
|
10
|
-
import {InvalidConfigException} from "../base/InvalidConfigException";
|
|
11
|
-
import {IdentityInterface} from "./IdentityInterface";
|
|
12
|
-
|
|
13
|
-
export class WebUser extends Component {
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* @var string the class name of the [[identity]] object.
|
|
17
|
-
*/
|
|
18
|
-
public identityClass: any;
|
|
19
|
-
private _identity: any;
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
get identity() {
|
|
23
|
-
return this._identity;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
set identity(value) {
|
|
27
|
-
this._identity = value;
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
public init() {
|
|
31
|
-
super.init();
|
|
32
|
-
|
|
33
|
-
if (this.identityClass === null) {
|
|
34
|
-
throw new InvalidConfigException('User::identityClass must be set.');
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
this.identityClass = new this.identityClass();
|
|
39
|
-
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
public getIsGuest() {
|
|
43
|
-
return this.getIdentity() === null;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
public getIdentity(autoRenew = true) {
|
|
47
|
-
return this._identity;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
public loginRequired() {
|
|
51
|
-
|
|
52
|
-
throw new ForbiddenHttpException(BaseChyz.t('Login Required'));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* Regenerates CSRF token
|
|
58
|
-
*
|
|
59
|
-
* @since 2.0.14.2
|
|
60
|
-
*/
|
|
61
|
-
protected regenerateCsrfToken() {
|
|
62
|
-
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
/**
|
|
66
|
-
* Logs in a user by the given access token.
|
|
67
|
-
* @param token
|
|
68
|
-
* @param type
|
|
69
|
-
*/
|
|
70
|
-
public async loginByAccessToken(token: any, type: any = null) {
|
|
71
|
-
|
|
72
|
-
let $class = this.identityClass;
|
|
73
|
-
if ($class.findIdentityByAccessToken) {
|
|
74
|
-
this.identity = await $class.findIdentityByAccessToken(token, type)
|
|
75
|
-
if (this.identity && this.login(this.identity)) {
|
|
76
|
-
return this.identity;
|
|
77
|
-
}
|
|
78
|
-
}else{
|
|
79
|
-
BaseChyz.error("WebUser::findIdentityByAccessToken undefined")
|
|
80
|
-
}
|
|
81
|
-
return null;
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
public login(identity: IdentityInterface, duration = 0): boolean {
|
|
85
|
-
|
|
86
|
-
if (this.beforeLogin(identity, false, duration)) {
|
|
87
|
-
|
|
88
|
-
}
|
|
89
|
-
return !this.getIsGuest()
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
public beforeLogin(identity: any, cookieBased: boolean, duration: number) {
|
|
93
|
-
|
|
94
|
-
return true;
|
|
95
|
-
}
|
|
96
|
-
|
|
97
|
-
public afterLogin() {
|
|
98
|
-
|
|
99
|
-
}
|
|
100
|
-
}
|