diff --git a/src/userregistration.cpp b/src/userregistration.cpp index 883548111e8ea285856cb402b7af1adfec4744db..e1a1731a0d7babe73fd603f0b273cd557dee8150 100644 --- a/src/userregistration.cpp +++ b/src/userregistration.cpp @@ -181,7 +181,7 @@ bool UserRegistration::handleGetRequest(const Swift::JID& from, const Swift::JID bool registered = m_storageBackend->getUser(barejid, res); std::string instructions = CONFIG_STRING(m_config, "registration.instructions"); - std::string usernameField = CONFIG_STRING(m_config, "registration.username_field"); + std::string usernameField = CONFIG_STRING(m_config, "registration.username_label"); // normal jabber:iq:register reg->setInstructions(instructions); @@ -219,6 +219,7 @@ bool UserRegistration::handleGetRequest(const Swift::JID& from, const Swift::JID ListSingleFormField::ref language = ListSingleFormField::create(); language->setName("language"); language->setLabel((("Language"))); + language->addOption(Swift::FormField::Option(CONFIG_STRING(m_config, "registration.language"), CONFIG_STRING(m_config, "registration.language"))); if (registered) language->setValue(res.language); else