Skip to content

Commit bb85e02

Browse files
committed
fix: fix delegator_sign_in
1 parent ca1c019 commit bb85e02

File tree

3 files changed

+10
-9
lines changed

3 files changed

+10
-9
lines changed

Cargo.lock

Lines changed: 8 additions & 8 deletions
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
@@ -25,7 +25,7 @@ opt-level = 's'
2525

2626
[workspace.package]
2727
edition = "2021"
28-
version = "2.9.1"
28+
version = "2.9.2"
2929
repository = "https://github.com/ldclabs/ic-panda"
3030
keywords = ["canister", "icp", "panda"]
3131
categories = ["web-programming"]

src/ic_name_identity/src/api.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,7 @@ fn sign_in(name: String, pubkey: ByteBuf, sig: ByteBuf) -> Result<SignInResponse
122122
.map_err(|err| format!("challenge verification failed: {:?}", err))?;
123123

124124
let user_key = CanisterSigPublicKey::new(ic_cdk::id(), name.as_bytes().to_vec());
125+
store::state::delegator_sign_in(&name, &caller, now_ms)?;
125126
let session_expires_in_ms = store::state::with_mut(|state| {
126127
state.sign_in_count = state.sign_in_count.saturating_add(1);
127128
state.session_expires_in_ms

0 commit comments

Comments
 (0)