mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-04 13:20:19 +08:00
feat: fix bug in pricing when signup by phone (#2316)
* fix: fix bug in pricing * fix: remove log
This commit is contained in:
@ -182,6 +182,8 @@ class SignupPage extends React.Component {
|
|||||||
AuthBackend.signup(values)
|
AuthBackend.signup(values)
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
if (res.status === "ok") {
|
if (res.status === "ok") {
|
||||||
|
// the user's id will be returned by `signup()`, if user signup by phone, the `username` in `values` is undefined.
|
||||||
|
values.username = res.data.split("/")[1];
|
||||||
if (Setting.hasPromptPage(application) && (!values.plan || !values.pricing)) {
|
if (Setting.hasPromptPage(application) && (!values.plan || !values.pricing)) {
|
||||||
AuthBackend.getAccount("")
|
AuthBackend.getAccount("")
|
||||||
.then((res) => {
|
.then((res) => {
|
||||||
|
Reference in New Issue
Block a user