private void renderSendCode() throws Exception { writeFormOpen(); writeEncode(getString("profile:Phone.VerifyHelp", CODE_LEN)); write("<br><br>"); writeButton( "send", getString( "profile:Phone.SendCode", Util.stripCountryCodeFromPhoneNumber(getParameterPhone("number")))); // Post back the number writeHiddenInput("fullnumber", getParameterPhone("number")); writeFormClose(); }
private void renderEnterCode() throws Exception { writeFormOpen(); TwoColFormControl twoCol = new TwoColFormControl(this); twoCol.writeTextRow(getString("profile:Phone.CodeHelp", CODE_LEN)); twoCol.writeSpaceRow(); twoCol.writeRow(getString("profile:Phone.Number")); twoCol.writeEncode(Util.stripCountryCodeFromPhoneNumber(getParameterString("fullnumber"))); twoCol.writeRow(getString("profile:Phone.Code", CODE_LEN)); twoCol.writeTextInput("code", null, CODE_LEN, CODE_LEN); twoCol.render(); write("<br>"); writeButton("verify", getString("profile:Phone.Verify")); // Post back the number writeHiddenInput("fullnumber", null); writeFormClose(); }