def METHOD_NAME(m,passwd):
    payload = m.get_payload()
    pin_act = payload.__cast__().message()
    # print("pin act: ",pin_act,end="")
    # print(", pin axpected: ",passwd)
    pin_expected = passwd
    if pin_act == pin_expected:
        lv.msg_send(MSG_LOGIN_OK, None)
    else:
        lv.msg_send(MSG_LOGIN_ERROR, Message("Incorrect PIN"))