Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

尝试注册时发生错误 #15

Open
weiaiweiai opened this issue Nov 15, 2023 · 3 comments
Open

尝试注册时发生错误 #15

weiaiweiai opened this issue Nov 15, 2023 · 3 comments

Comments

@weiaiweiai
Copy link

weiaiweiai commented Nov 15, 2023

我不太能确定这与我编译步骤有关。
我是直接尝试编译North项目,随后直接访问http://127.0.0.1:12121/

2023-11-15 20:29:52 [North Error] Register failed
Microsoft.Data.Sqlite.SqliteException (0x80004005): SQLite Error 19: 'NOT NULL constraint failed: Users.MaxUploadCapacity'.
at Microsoft.Data.Sqlite.SqliteException.ThrowExceptionForRC(Int32 rc, sqlite3 db)
at Microsoft.Data.Sqlite.SqliteDataReader.NextResult()
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteReader(CommandBehavior behavior)
at Microsoft.Data.Sqlite.SqliteCommand.ExecuteNonQuery()
at System.Data.Common.DbCommand.ExecuteNonQueryAsync(CancellationToken cancellationToken)
--- End of stack trace from previous location ---
at SqlSugar.AdoProvider.ExecuteCommandAsync(String sql, SugarParameter[] parameters)
at SqlSugar.InsertableProvider1.ExecuteCommandAsync() at North.Core.Repository.Repository1.AddAsync(T entity) in C:\Users\31506\Documents\GitHub\North\src\North.Core\Repository\Repository.cs:line 78
at North.Pages.Auth.Register.UserRegister() in C:\Users\31506\Documents\GitHub\North\src\North\Pages\Auth\Register.razor.cs:line 89

这似乎是在UserEntity 类中缺少重要字段:MaxUploadCapacity

我尝试在UserEntity中 添加了以下字段,注册成功了,但是登录无法跳转

        public int MaxUploadCapacity { get; set; } = 0;

        public double MaxUploadCapacityByte => MaxUploadCapacity * 1024 * 1024;

随后我在数据库中吧如下字段改为1

State
Permission
IsApiAvailable
image

我终于能够成功登录了

但是似乎登录后依然有问题(如下截图)
image
image
image
image

@Redns
Copy link
Owner

Redns commented Nov 16, 2023

关于注册

计划中软件初次安装会有 引导程序,但因为很多重要功能一直没有完成,引导程序的优先级比较低,所以一直还没做。后面考虑我自己开发时间不太多,计划先把 引导程序、图片上传、仪表盘、相册管理 等功能完善起来,插件系统 等后期迭代更新

部分功能无法使用

插件系统的引入重写了很多逻辑和 UI,因为很多页面还没有进行适配,为了调试就直接将这些页面屏蔽了

@BallM8964
Copy link

还是期待先把用户注册、授权、用户名密码登录这套东西搞起来,现在等于是裸奔,不敢用啊

@Redns
Copy link
Owner

Redns commented Nov 19, 2023

收到,快马加鞭更新😂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants