magento 2 confirm customer

i am tried to create login by mobile module so i need to confirm customer after verify mobile number.by this code i do that