mirror of
https://git.tt-rss.org/git/tt-rss.git
synced 2025-12-13 08:55:55 +00:00
remove language selector from the login form, store language in the database per-user
This commit is contained in:
@@ -478,14 +478,6 @@ class Handler_Public extends Handler {
|
||||
<tr><td align="right"><?php echo __("Password:") ?></td>
|
||||
<td align="right"><input type="password" name="password"
|
||||
value="<?php echo $_SESSION["fake_password"] ?>"></td></tr>
|
||||
<tr><td align="right"><?php echo __("Language:") ?></td>
|
||||
<td align="right">
|
||||
<?php
|
||||
print_select_hash("language", $_COOKIE["ttrss_lang"], get_translations(),
|
||||
"style='width : 100%''");
|
||||
|
||||
?>
|
||||
</td></tr>
|
||||
<tr><td colspan='2'>
|
||||
<button type="submit">
|
||||
<?php echo __('Log in') ?></button>
|
||||
@@ -518,7 +510,7 @@ class Handler_Public extends Handler {
|
||||
if (authenticate_user($login, $password)) {
|
||||
$_POST["password"] = "";
|
||||
|
||||
$_SESSION["language"] = $_POST["language"];
|
||||
$_SESSION["language"] = get_pref("USER_LANGUAGE", $_SESSION["uid"], false);
|
||||
$_SESSION["ref_schema_version"] = get_schema_version(true);
|
||||
$_SESSION["bw_limit"] = !!$_POST["bw_limit"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user