mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-03 12:30:19 +08:00
Add Properties to user.
This commit is contained in:
@ -44,7 +44,7 @@ class UserListPage extends React.Component {
|
||||
|
||||
newUser() {
|
||||
return {
|
||||
owner: "admin", // this.props.account.username,
|
||||
owner: "built-in", // this.props.account.username,
|
||||
name: `user_${this.state.users.length}`,
|
||||
createdTime: moment().format(),
|
||||
type: "normal-user",
|
||||
@ -58,6 +58,7 @@ class UserListPage extends React.Component {
|
||||
isAdmin: false,
|
||||
isGlobalAdmin: false,
|
||||
IsForbidden: false,
|
||||
properties: {},
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -68,18 +68,22 @@ class AuthCallback extends React.Component {
|
||||
|
||||
UNSAFE_componentWillMount() {
|
||||
const params = new URLSearchParams(this.props.location.search);
|
||||
const code = params.get("code");
|
||||
|
||||
const innerParams = this.getInnerParams();
|
||||
const applicationName = innerParams.get("application");
|
||||
const providerName = innerParams.get("provider");
|
||||
const method = innerParams.get("method");
|
||||
|
||||
let redirectUri = `${window.location.origin}/callback`;
|
||||
|
||||
const body = {
|
||||
type: this.getResponseType(),
|
||||
application: applicationName,
|
||||
provider: providerName,
|
||||
code: params.get("code"),
|
||||
code: code,
|
||||
// state: innerParams.get("state"),
|
||||
state: innerParams.get("application"),
|
||||
state: applicationName,
|
||||
redirectUri: redirectUri,
|
||||
method: method,
|
||||
};
|
||||
|
Reference in New Issue
Block a user