Warning: session_start(): open(/var/lib/php/sessions/sess_bghgs2dlrso6i2lpmcupsdjoko, O_RDWR) failed: No space left on device (28) in /var/www/tb-usercake/models/config.php on line 51
Warning: session_start(): Failed to read session data: files (path: /var/lib/php/sessions) in /var/www/tb-usercake/models/config.php on line 51
!7
sclass UsersPrimaryMailAddress extends DynModule {
S address;
JComponent visualize() {
ret jSection("Your Primary E-Mail Address",
centerAndSouth(centerBoldLabel(jLiveValueLabel(dm_fieldLiveValue(this, 'address))),
jcenteredbuttons("Change...", r {
final JTextField tf = jtextfield(address);
showFormTitled("Set your e-mail address",
"Address", tf, disableButtonWhileCalcing(func -> bool {
S s = getTextTrim(tf);
if (empty(s) || isValidEmailAddress(s))
ret true with setField(address := s);
ret false with infoBox(s + " is not a valid mail address");
}));
})));
}
}