fix(@desktop/community): appropriate password form used when signing join community request in case the profile is migrated to a keycard
This commit is contained in:
parent
0536ce898d
commit
a055ad4d71
|
@ -664,11 +664,14 @@ proc signRevealedAddressesThatBelongToRegularKeypairs(self: Module): bool =
|
|||
return false
|
||||
if keypair.migratedToKeycard():
|
||||
continue
|
||||
var finalPassword = self.joiningCommunityDetails.profilePassword
|
||||
if not singletonInstance.userProfile.getIsKeycardUser():
|
||||
finalPassword = common_utils.hashPassword(self.joiningCommunityDetails.profilePassword)
|
||||
signingParams.add(
|
||||
SignParamsDto(
|
||||
address: address,
|
||||
data: details.messageToBeSigned,
|
||||
password: common_utils.hashPassword(self.joiningCommunityDetails.profilePassword),
|
||||
password: finalPassword,
|
||||
)
|
||||
)
|
||||
if signingParams.len == 0:
|
||||
|
|
Loading…
Reference in New Issue