To wrap up: SMS texting is inherently insecure, for reasons mentioned above.
Unfortunately, you seem to have been misinformed about this, and your request is not actually appropriate or safe for a secure login system. The details you are focusing on are unrelated to the security of SMS or web applications, and as a result are not relevant here. Since this request has been asked and answered, I am locking this thread.