Skip to content

Commit

Permalink
fix: fix delegator_sign_in
Browse files Browse the repository at this point in the history
  • Loading branch information
zensh committed Dec 24, 2024
1 parent ca1c019 commit bb85e02
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 9 deletions.
16 changes: 8 additions & 8 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ opt-level = 's'

[workspace.package]
edition = "2021"
version = "2.9.1"
version = "2.9.2"
repository = "https://github.com/ldclabs/ic-panda"
keywords = ["canister", "icp", "panda"]
categories = ["web-programming"]
Expand Down
1 change: 1 addition & 0 deletions src/ic_name_identity/src/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,7 @@ fn sign_in(name: String, pubkey: ByteBuf, sig: ByteBuf) -> Result<SignInResponse
.map_err(|err| format!("challenge verification failed: {:?}", err))?;

let user_key = CanisterSigPublicKey::new(ic_cdk::id(), name.as_bytes().to_vec());
store::state::delegator_sign_in(&name, &caller, now_ms)?;
let session_expires_in_ms = store::state::with_mut(|state| {
state.sign_in_count = state.sign_in_count.saturating_add(1);
state.session_expires_in_ms
Expand Down

0 comments on commit bb85e02

Please sign in to comment.