MCPcopy Create free account
hub / github.com/BombusMod/BombusMod / formSubmit

Method formSubmit

src/main/java/Account/AccountRegister.java:202–215  ·  view source on GitHub ↗
(Vector fields)

Source from the content-addressed store, hash-verified

200 }
201
202 public void formSubmit(Vector fields) {
203 for (Enumeration e = fields.elements(); e.hasMoreElements();) {
204 FormField field = (FormField) e.nextElement();
205 if (field != null && field.name != null) {
206 if (field.name.equals("username")) {
207 raccount.JID = new Jid(((TextInput) field.formItem).getValue(),
208 raccount.JID.getServer(), StaticData.getInstance().getVersionInfo().NAME);
209 }
210 if (field.name.equals("password")) {
211 raccount.password = ((TextInput) field.formItem).getValue();
212 }
213 }
214 }
215 }
216 }

Callers

nothing calls this directly

Calls 6

getInstanceMethod · 0.95
elementsMethod · 0.80
getServerMethod · 0.80
getVersionInfoMethod · 0.80
equalsMethod · 0.45
getValueMethod · 0.45

Tested by

no test coverage detected