Skip to content

Commit

Permalink
fix: make phone optional during enrollment (#598)
Browse files Browse the repository at this point in the history
* Make phone optional during enrolment
* Update proto submodule
  • Loading branch information
j-chmielewski authored Mar 21, 2024
1 parent 9cf0bba commit 56c4493
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion proto
Submodule proto updated 1 files
+1 −1 core/proxy.proto
2 changes: 1 addition & 1 deletion src/grpc/enrollment.rs
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ impl EnrollmentServer {
})?;

// update user
user.phone = Some(request.phone_number);
user.phone = request.phone_number;
user.set_password(&request.password);
user.save(&mut *transaction).await.map_err(|err| {
error!("Failed to update user {}: {err}", user.username);
Expand Down

0 comments on commit 56c4493

Please sign in to comment.