| from models.dataset import Document as DatasetDocument | from models.dataset import Document as DatasetDocument | ||||
| from models.model import Account, App, AppAnnotationSetting, AppMode, Conversation, MessageAnnotation | from models.model import Account, App, AppAnnotationSetting, AppMode, Conversation, MessageAnnotation | ||||
| from models.provider import Provider, ProviderModel | from models.provider import Provider, ProviderModel | ||||
| from services.account_service import RegisterService, TenantService | |||||
| from services.account_service import AccountService, RegisterService, TenantService | |||||
| from services.clear_free_plan_tenant_expired_logs import ClearFreePlanTenantExpiredLogs | from services.clear_free_plan_tenant_expired_logs import ClearFreePlanTenantExpiredLogs | ||||
| from services.plugin.data_migration import PluginDataMigration | from services.plugin.data_migration import PluginDataMigration | ||||
| from services.plugin.plugin_migration import PluginMigration | from services.plugin.plugin_migration import PluginMigration | ||||
| account.password = base64_password_hashed | account.password = base64_password_hashed | ||||
| account.password_salt = base64_salt | account.password_salt = base64_salt | ||||
| db.session.commit() | db.session.commit() | ||||
| AccountService.reset_login_error_rate_limit(email) | |||||
| click.echo(click.style("Password reset successfully.", fg="green")) | click.echo(click.style("Password reset successfully.", fg="green")) | ||||