fixes vending machines security

This commit is contained in:
Ty-Omaha
2018-09-12 05:20:19 -04:00
parent eee57a2b46
commit f2bc8e9b48
+2 -3
View File
@@ -386,9 +386,8 @@
// empty at high security levels
if(customer_account.security_level != 0) //If card requires pin authentication (ie seclevel 1 or 2)
var/attempt_pin = input("Enter pin code", "Vendor transaction") as num
customer_account = attempt_account_access(customer_account, attempt_pin, 2)
if(!customer_account)
if(!attempt_account_access(customer_account.account_number, attempt_pin, 2))
src.status_message = "Unable to access account: incorrect credentials."
src.status_error = 1
return 0