Welcome!
This is the community forum for my apps Pythonista and Editorial.
For individual support questions, you can also send an email. If you have a very short question or just want to say hello — I'm @olemoritz on Twitter.
[Share Code] Touch ID Authentication in Pythonista
-
@omz Your fork crashes my Pythonista 3 unfortunately, however I've tried HyShai's fix with no change. Here's my implementation.
from func import TouchID cfg['touchIDEnabled'] = True ... if cfg['touchIDEnabled'] == True: fp = TouchID.authenticate('To continue to x, please use fingerprint.', allow_passcode=False)
My TouchID file is the exact same as the original, besides the change HyShai suggested. Probably worth mentioning that my actual script is 1100+ lines long (main reason being I have a very complex UI that I did manually rather than using the builder), which I imagine doesn't help. Any ideas?
Pythonista 3, iOS 10.1.1.
Edit: looks like there's nothing wrong with the module, I tried a similar implementation in another file (obviously massively shorter) and it worked fine. I might have to work on some optimisation, see what happens. I'm on an air2.
Edit2: Simply commenting stuff out, running, uncommenting seems to fix the crashes. Strange but it's happened before to me. ¯\_(ツ)_/¯
-
@omz
Same problem for me, crash in a big script of 250 lines, no problem with a little test script.
Error is "Fatal Python error: Segmentation fault"Crash just after the touchid window, either if correct finger, cancel or timeout!