Refactor the original db code.

This commit is contained in:
Gucheng Wang
2021-12-18 01:08:03 +08:00
parent 07f9a9ee96
commit 318cf52b33
16 changed files with 342 additions and 382 deletions

View File

@ -20,7 +20,6 @@ import (
"strconv"
"github.com/casbin/casdoor/object"
"github.com/casbin/casdoor/original"
"github.com/casbin/casdoor/util"
)
@ -168,7 +167,7 @@ func (c *ApiController) Signup() {
return
}
original.AddUserToOriginalDatabase(user)
object.AddUserToOriginalDatabase(user)
if application.HasPromptPage() {
// The prompt page needs the user to be signed in