KX Community

Find answers, ask questions, and connect with our KX Community around the world.
KX Community Guidelines

Home Forums KX Academy Need help on Advance Capstone 3.4 excercise

  • Need help on Advance Capstone 3.4 excercise

    Posted by ashish31 on August 8, 2023 at 12:00 am

    Not able to get access the port after .z.pw function.

    .z.pw:{[user;pswd] $[.Q.sha1 pswd ~.perm.users[user][`password]; 1b; 0b]} 
    
    meta .perm.users 
    c       | t f a 
    --------| ----- 
    user    | s 
    password| X 
    api     | s 
    
    .perm.users 
    user   | password                                   api 
    -------| ---------------------------------------------------------------- 
    jmurphy| 0x6dc840b1dc23606cdb08eeb1462b9f55e1690a42 all 
    psmith | 0x815016d18e68cb0f568d6f5049e667e70d03ddde all 
    ataylor| 0x3c3ca14c5ce25d349406e0a0579b7a944c3ee8fc all 
    twilson| 0x83b1604a8caebdd7ae17e4e26f4be98c68df80ec all 
    fiauser| 0xb03fc290033b0897369bc5588a71c42d954b9c84 .fia.getSummaryReport
    ashish31 replied 8 months, 2 weeks ago 2 Members · 1 Reply
  • 1 Reply
  • Laura

    Administrator
    August 9, 2023 at 12:00 am

    You are just missing square brackets when using .Q.sha1

     

    hdbH".z.pw:{[user;pswd] $[.Q.sha1[pswd] ~.perm.users[user][`password]; 1b; 0b]}"

     

     

Log in to reply.