Skip to content

Commit d671224

Browse files
committed
fix: set must-change-password to false when create gitea user
1 parent c1bb98a commit d671224

File tree

4 files changed

+4
-3
lines changed

4 files changed

+4
-3
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ resolver = "2"
77
[package]
88
name = "backend"
99
description = "Backend API and services for StackClass"
10-
version = "0.32.5"
10+
version = "0.32.6"
1111
edition = "2024"
1212

1313
default-run = "stackclass-server"

openapi.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"license": {
77
"name": ""
88
},
9-
"version": "0.32.5"
9+
"version": "0.32.6"
1010
},
1111
"paths": {
1212
"/v1/courses": {

src/service/repository.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,6 +244,7 @@ impl RepoService {
244244
let salt = &self.ctx.config.auth_secret;
245245
let password = crypto::password(&req.email, salt);
246246
req.password = Some(password);
247+
req.must_change_password = Some(false);
247248

248249
Ok(self.ctx.git.create_user(req).await?)
249250
}

0 commit comments

Comments
 (0)