fixed fishconfig reverting captcha every time
This commit is contained in:
parent
4c2b42ab7f
commit
ea1c8c56e3
1 changed files with 7 additions and 4 deletions
|
@ -20,10 +20,13 @@ public sealed class FishConfigService : ConfigServiceBase<FishConfig>
|
|||
|
||||
private void Migrate()
|
||||
{
|
||||
ModifyConfig(c =>
|
||||
if (data.Version < 2)
|
||||
{
|
||||
c.Version = 2;
|
||||
c.RequireCaptcha = true;
|
||||
});
|
||||
ModifyConfig(c =>
|
||||
{
|
||||
c.Version = 2;
|
||||
c.RequireCaptcha = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Reference in a new issue