Bug description
When a user logs in to Nextcloud via OAuth (the feature is provided by the Social Login app) (in my case using Mailcow as OAuth Provider), this does not seem to update the âlast login dateâ. This Date is set to the creation date (when logged in first).
If I as admin user log in regularly to NC, the date gets updated. Somehow there is one Mailcow user which seems to get its last login date updated when he logs in to NC using Mailcow, but maybe this was to some other reason. To check the users actually did log in I logged in to NC via Mailcow and yes, the last login date got not updated.
I checked the last login date using the Nextcloud Interface as Admin > Users > View Last Login Date, using occ user:lastseen
and even occ usage-report:generate --last-login-date
(with the respective app installed.
I installed Nextcloud a week ago using the docker AIO solution, everything is up to date, the Social Login App update did not solve the problem.
Steps to reproduce
- Activate the Social Login App.
- Set up an OAuth Provider (Mailcow) for the Social Login.
- Log in to Nextcloud using the OAuth Provider without having an account with that mail adress before and thereby create a new account. (last login date gets set to this moment)
- Log out.
- Log in later again.
- Check last login date of the OAuth authentificated user. (Will still show just creation date)
Expected behavior
Last Login Date also works for OAuth Lpgins using the Social Login App and will show time and date of the second login.
System Information
Installation method: Docker AIO
Operating system: Debian 11 Buster
PHP engine version: PHP 7.4
Web server: Nginx
Database engine version: PostgreSQL
Config
{
âsystemâ: {
âmemcache.localâ: â\OC\Memcache\APCuâ,
âapps_pathsâ: [
{
âpathâ: â/var/www/html/appsâ,
âurlâ: â/appsâ,
âwritableâ: false
},
{
âpathâ: â/var/www/html/custom_appsâ,
âurlâ: â/custom_appsâ,
âwritableâ: true
}
],
âmemcache.distributedâ: â\OC\Memcache\Redisâ,
âmemcache.lockingâ: â\OC\Memcache\Redisâ,
âredisâ: {
âhostâ: âREMOVED SENSITIVE VALUEâ,
âpasswordâ: âREMOVED SENSITIVE VALUEâ,
âportâ: 6379
},
âoverwritehostâ: âREMOVED SENSITIVE VALUE*â,
âoverwriteprotocolâ: âhttpsâ,
âpasswordsaltâ: âREMOVED SENSITIVE VALUEâ,
âsecretâ: âREMOVED SENSITIVE VALUEâ,
âtrusted_domainsâ: [
âlocalhostâ,
âREMOVED SENSITIVE VALUE*â
],
âdatadirectoryâ: âREMOVED SENSITIVE VALUEâ,
âdbtypeâ: âpgsqlâ,
âversionâ: â25.0.2.3â,
âoverwrite.cli.urlâ: âREMOVED SENSITIVE VALUE*â,
âdbnameâ: âREMOVED SENSITIVE VALUEâ,
âdbhostâ: âREMOVED SENSITIVE VALUEâ,
âdbportâ: ââ,
âdbtableprefixâ: âoc_â,
âdbuserâ: âREMOVED SENSITIVE VALUEâ,
âdbpasswordâ: âREMOVED SENSITIVE VALUEâ,
âinstalledâ: true,
âinstanceidâ: âREMOVED SENSITIVE VALUEâ,
âloglevelâ: â2â,
âlog_typeâ: âfileâ,
âlogfileâ: â/var/www/html/data/nextcloud.logâ,
âlog_rotate_sizeâ: â10485760â,
âlog.conditionâ: {
âappsâ: [
âadmin_auditâ
]
},
âpreview_max_xâ: â2048â,
âpreview_max_yâ: â2048â,
âjpeg_qualityâ: â60â,
âenabledPreviewProvidersâ: {
â1â: âOC\Preview\Imageâ,
â2â: âOC\Preview\MarkDownâ,
â3â: âOC\Preview\MP3â,
â4â: âOC\Preview\TXTâ,
â5â: âOC\Preview\OpenDocumentâ,
â6â: âOC\Preview\Movieâ,
â0â: âOC\Preview\Imaginaryâ
},
âenable_previewsâ: true,
âupgrade.disable-webâ: true,
âmail_smtpmodeâ: âsmtpâ,
âtrashbin_retention_obligationâ: âauto, 30â,
âversions_retention_obligationâ: âauto, 30â,
âactivity_expire_daysâ: â30â,
âsimpleSignUpLink.shownâ: false,
âshare_folderâ: â/Sharedâ,
âtempdirectoryâ: â/mnt/ncdata/tmp/â,
âone-click-instanceâ: true,
âone-click-instance.user-limitâ: 100,
âone-click-instance.linkâ: âhttps://nextcloud.com/all-in-one/â,
âhtaccess.RewriteBaseâ: â/â,
âfiles_external_allow_create_new_localâ: true,
âtrusted_proxiesâ: âREMOVED SENSITIVE VALUEâ,
âallow_local_remote_serversâ: true,
âpreview_imaginary_urlâ: âhttp://nextcloud-aio-imaginary:9000â,
âmail_smtpauthtypeâ: âLOGINâ,
âmail_sendmailmodeâ: âsmtpâ,
âmail_smtpauthâ: 1,
âmail_smtpsecureâ: âtlsâ,
âmail_from_addressâ: âREMOVED SENSITIVE VALUEâ,
âmail_domainâ: âREMOVED SENSITIVE VALUEâ,
âmail_smtphostâ: âREMOVED SENSITIVE VALUEâ,
âmail_smtpportâ: â587â,
}
}
Apps
Enabled:
- activity: 2.17.0
- admin_audit: 1.15.0
- announcementcenter: 6.4.0
- auto_groups: 1.5.0
- bruteforcesettings: 2.5.0
- calendar: 4.2.1
- cfg_share_links: 3.0.2
- circles: 25.0.0
- cloud_federation_api: 1.8.0
- co2clock: 0.1.3
- comments: 1.15.0
- contacts: 5.0.2
- contactsinteraction: 1.6.0
- dashboard: 7.5.0
- data_request: 1.12.0
- dav: 1.24.0
- deck: 1.8.3
- external: 5.0.0
- externalpassword: 1.1.0
- federatedfilesharing: 1.15.0
- federation: 1.15.0
- files: 1.20.1
- files_antivirus: 4.0.2
- files_fulltextsearch: 25.0.0
- files_mindmap: 0.0.27
- files_pdfviewer: 2.6.0
- files_rightclick: 1.4.0
- files_sharing: 1.17.0
- files_trashbin: 1.15.0
- files_versions: 1.18.0
- firstrunwizard: 2.14.0
- forms: 3.0.3
- fulltextsearch: 25.0.0
- fulltextsearch_elasticsearch: 25.0.0
- groupfolders: 13.1.0
- guests: 2.3.0
- holiday_calendars: 0.2.1
- login_notes: 1.1.0
- logreader: 2.10.0
- lookup_server_connector: 1.13.0
- maps: 0.2.4
- metadata: 0.17.0
- nextcloud-aio: 0.3.0
- nextcloud_announcements: 1.14.0
- notifications: 2.13.1
- notify_push: 0.5.0
- oauth2: 1.13.0
- password_policy: 1.15.0
- photos: 2.0.1
- polls: 4.0.0
- privacy: 1.9.0
- provisioning_api: 1.15.0
- quota_warning: 1.15.0
- recommendations: 1.4.0
- related_resources: 1.0.3
- richdocuments: 7.0.2
- serverinfo: 1.15.0
- settings: 1.7.0
- sharebymail: 1.15.0
- sociallogin: 5.1.5
- spreed: 15.0.2
- support: 1.8.0
- survey_client: 1.13.0
- suspicious_login: 4.3.0
- systemtags: 1.15.0
- tasks: 0.14.5
- text: 3.6.0
- theming: 2.0.1
- twofactor_backupcodes: 1.14.0
- user_status: 1.5.0
- user_usage_report: 1.9.0
- viewer: 1.9.0
- weather_status: 1.5.0
- workflowengine: 2.7.0
Any ideas how to fix this?
If there is any way I need to be able knowing last login time
Greetings, h05