Skip to content
This repository has been archived by the owner on Jan 10, 2024. It is now read-only.

Login not working properly #1389

Closed
SiKreuz opened this issue Apr 25, 2021 · 3 comments
Closed

Login not working properly #1389

SiKreuz opened this issue Apr 25, 2021 · 3 comments

Comments

@SiKreuz
Copy link
Contributor

SiKreuz commented Apr 25, 2021

Steps to Reproduce

  1. Go through the login process
  2. See the error message in the end

image

Problem

The login verification fails. So the status returned here is a verificationfail

I have no idea why this happens. Sometimes a restart helps and I'm logged in, sometimes it doesn't.
This error happens on my phone, as well as on a virtual device, so it seems to be platform independent.

Environment

  • Phone: OnePlus 5T
  • OS version: OxygenOS 10.0.1
  • TUM Campus App version: v3.9
  • Language: German and English
@joschahenningsen
Copy link
Member

I'm also getting this toast:

Utils.showToastOnUIThread(requireActivity(), R.string.error_setup_chat_member)

Seems to be a backend thing. @kordianbruck did you change something when experimenting with the new server setup or are there any helpful logs?

@joschahenningsen
Copy link
Member

Apparently this is the underlying issue:
Uncaught Error: Class 'Crypt_RSA' not found in /app/App/Model/Device.php:47
Full stack trace:

<b>Fatal error</b>:  Uncaught Error: Class 'Crypt_RSA' not found in /app/App/Model/Device.php:47
    Stack trace:
    #0 /app/App/Modules/Api/Device.php(57): Model_Device::checkSignature('GESAEGEA...')
    #1 /app/App/Router.php(207): Modules_Api_Device::register(Object(stdClass), Object(stdClass))
    #2 /app/App/Core.php(104): Router-&gt;dispatch()
    #3 /app/Public/index.php(51): Core-&gt;run()
    #4 {main}
      thrown in <b>/app/App/Model/Device.php</b> on line <b>47</b><br />

@kordianbruck
Copy link
Member

For context: backend was missing a dependency for using RSA functions.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants